]> git.meshlink.io Git - catta/commitdiff
fix avahi-dnsconfd segfault
authorLennart Poettering <lennart@poettering.net>
Mon, 29 Aug 2005 00:07:26 +0000 (00:07 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 29 Aug 2005 00:07:26 +0000 (00:07 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@488 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-dnsconfd/main.c

index 26b479ec39544b984615cffb25290fb0c698b0ac..078efc9adeaabede679e8c855a5fc72e8e00662e 100644 (file)
@@ -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 */