From: Andre Noll Date: Thu, 4 Nov 2010 08:12:57 +0000 (+0100) Subject: write_common: Remove check which is never true. X-Git-Tag: v0.4.5~4^2~8 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=12123ab5a95a0f31385e9615d36056cb6546aced;p=paraslash.git write_common: Remove check which is never true. 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. --- diff --git a/write_common.c b/write_common.c index 5352356b..fb7f4775 100644 --- 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 : ""); }