From 1a031ba05195b9c9c22427481bfce33a3a14ebb9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 29 Aug 2005 00:07:26 +0000 Subject: [PATCH] fix avahi-dnsconfd segfault git-svn-id: file:///home/lennart/svn/public/avahi/trunk@488 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-dnsconfd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5