about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/network/resolvconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/resolvconf.c b/src/network/resolvconf.c
index 0743a88f..7e4dbe21 100644
--- a/src/network/resolvconf.c
+++ b/src/network/resolvconf.c
@@ -69,7 +69,7 @@ int __get_resolv_conf(struct resolvconf *conf, char *search, size_t search_sz)
 		}
 
 		if (!search) continue;
-		if (strncmp(line, "domain", 6) || strncmp(line, "search", 6)
+		if ((strncmp(line, "domain", 6) && strncmp(line, "search", 6))
 		    || !isspace(line[6]))
 			continue;
 		for (p=line+7; isspace(*p); p++);