summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1b321a7)
raw | patch | inline | side by side (parent: 1b321a7)
author | Florian Forster <octo@noris.net> | |
Tue, 7 Oct 2008 07:42:27 +0000 (09:42 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Tue, 7 Oct 2008 07:42:27 +0000 (09:42 +0200) |
With unknown config options the `current_status' variable would have
been accessed uninitialized.
been accessed uninitialized.
src/perl.c | patch | blob | history |
diff --git a/src/perl.c b/src/perl.c
index bb62267e89608166c70392ce52518fbd0ce74a51..d3e8c29ec9de071ff5d42988020a2eee40d30c80 100644 (file)
--- a/src/perl.c
+++ b/src/perl.c
else if (0 == strcasecmp (c->key, "Plugin"))
current_status = perl_config_plugin (aTHX_ c);
else
+ {
log_warn ("Ignoring unknown config key \"%s\".", c->key);
+ current_status = 0;
+ }
/* fatal error - it's up to perl_config_* to clean up */
if (0 > current_status) {