projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix logic error.
[util-vserver.git]
/
src
/
vsysctl.c
diff --git
a/src/vsysctl.c
b/src/vsysctl.c
index
f0fd9b3
..
7f6f1dd
100644
(file)
--- 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);