git.droids-corp.org
/
libcmdline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dff21d
)
genconf: properly check retval of confnode_strvalue_to_boolvalue()
author
Olivier Matz
<zer0@droids-corp.org>
Fri, 24 Dec 2010 12:05:16 +0000
(13:05 +0100)
committer
Olivier Matz
<zer0@droids-corp.org>
Sun, 2 Jan 2011 20:53:15 +0000
(21:53 +0100)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
src/genconf/confnode.c
patch
|
blob
|
history
diff --git
a/src/genconf/confnode.c
b/src/genconf/confnode.c
index
ed5bd91
..
3af3cd3
100644
(file)
--- a/
src/genconf/confnode.c
+++ b/
src/genconf/confnode.c
@@
-206,7
+206,7
@@
int confnode_dotconfig_write(const struct confnode *n, FILE *f)
if (confnode_get_value(n, buf, sizeof(buf)) < 0)
return -1;
val = confnode_strvalue_to_boolvalue(n, buf);
- if (val <
1
)
+ if (val <
0
)
return -1;
if (val == 0) {