Fix logic error.
[util-vserver.git] / src / vsysctl.c
index f0fd9b3..7f6f1dd 100644 (file)
@@ -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);