This commit is contained in:
Max Lv
2017-10-16 15:51:05 +08:00
parent c67d275803
commit b3f3b58a1d
+1 -1
View File
@@ -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;
}