1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 05:16:38 +02:00

core: fix use NULL pointer when a config file has no options

This commit is contained in:
Sébastien Helleu
2023-10-30 12:13:55 +01:00
parent 81b31d9e6c
commit 23289dcb2c
+7 -4
View File
@@ -598,10 +598,13 @@ doc_gen_user_options (const char *path, const char *lang)
free (default_value);
}
string_fprintf (
file,
"// end::%s_options[]\n",
old_config->name);
if (old_config)
{
string_fprintf (
file,
"// end::%s_options[]\n",
old_config->name);
}
arraylist_free (list_options);