From: Daniel Hokka Zakrisson Date: Thu, 18 Jan 2007 16:33:45 +0000 (+0000) Subject: Fix logic error. X-Git-Tag: release-0.30.214~146 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ca5817232cc9d844f142ce9c300a4206f43867a;p=util-vserver.git Fix logic error. git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2459 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- 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);