From: Lennart Poettering Date: Mon, 29 Aug 2005 00:07:26 +0000 (+0000) Subject: fix avahi-dnsconfd segfault X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=1a031ba05195b9c9c22427481bfce33a3a14ebb9;p=catta fix avahi-dnsconfd segfault git-svn-id: file:///home/lennart/svn/public/avahi/trunk@488 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-dnsconfd/main.c b/avahi-dnsconfd/main.c index 26b479e..078efc9 100644 --- a/avahi-dnsconfd/main.c +++ b/avahi-dnsconfd/main.c @@ -257,7 +257,7 @@ static void set_env(const char *name, const char *value) { if (strlen(*e) < l+1) continue; - if (strncmp(*e, name, l) != 0 || *e[l] != '=') + if (strncmp(*e, name, l) != 0 || (*e)[l] != '=') continue; /* We simply free the record, sicne we know that we created it previously */