From 12123ab5a95a0f31385e9615d36056cb6546aced Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 4 Nov 2010 09:12:57 +0100 Subject: [PATCH] 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. --- write_common.c | 2 -- 1 file changed, 2 deletions(-) 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 : ""); } -- 2.39.5