diff --git a/src/jconf.c b/src/jconf.c index 70b92f0d..98942c29 100644 --- a/src/jconf.c +++ b/src/jconf.c @@ -247,7 +247,7 @@ read_jconf(const char *file) conf.user = to_string(value); } else if (strcmp(name, "plugin") == 0) { conf.plugin = to_string(value); - if (strlen(conf.plugin) == 0) { + if (conf.plugin && strlen(conf.plugin) == 0) { ss_free(conf.plugin); conf.plugin = NULL; }