X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-dnsconfd%2Fmain.c;h=078efc9adeaabede679e8c855a5fc72e8e00662e;hb=4ddfb3cc4ac10efff11fc58693ae2aacf592fb73;hp=26b479ec39544b984615cffb25290fb0c698b0ac;hpb=fe367caf27dd022258218a768da1ae2ddd246203;p=catta 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 */