X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvsysctl.c;h=7f6f1ddbb480738de72ee8d580e46b6ffaece42c;hb=6ca5817232cc9d844f142ce9c300a4206f43867a;hp=f0fd9b38269c084cd272656c1acd5e92a00489af;hpb=08cf141b4557892740d357c523fe8ed74be39bcb;p=util-vserver.git diff --git a/src/vsysctl.c b/src/vsysctl.c index f0fd9b3..7f6f1dd 100644 --- a/src/vsysctl.c +++ b/src/vsysctl.c @@ -116,7 +116,7 @@ void handle_setting(const char *dir, const char *name) *ptr = '/'; /* we just want the first line, and not the linefeed */ - if ((ptr = strchr(setting, '\n')) == NULL) + if ((ptr = strchr(setting, '\n')) != NULL) *ptr = '\0'; fd = EopenD(setting, O_WRONLY, 0);