projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bb991c6
)
write_common: Remove check which is never true.
author
Andre Noll
<maan@systemlinux.org>
Thu, 4 Nov 2010 08:12:57 +0000
(09:12 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 23 Nov 2010 16:33:46 +0000
(17:33 +0100)
All writers have a config parser. This check was bogus anyway: If there was a writer
without config parser and we call it without arguments (i.e. "c" is NULL), this would lead
to a NULL pointer dereference.
write_common.c
patch
|
blob
|
history
diff --git
a/write_common.c
b/write_common.c
index 5352356b5835ea5e398392332447a7188fe50444..fb7f4775111009158cbb2ba4836caddbe6247697 100644
(file)
--- a/
write_common.c
+++ b/
write_common.c
@@
-66,8
+66,6
@@
void *check_writer_arg(const char *wa, int *writer_num)
c = wa[len];
if (c && c != ' ')
continue;
- if (c && !writers[i].parse_config_or_die)
- return NULL;
*writer_num = i;
return writers[i].parse_config_or_die(c? wa + len + 1 : "");
}