Do not dereference pane when it is NULL, fixes a crash when creating a

hook from the config, GitHub issue 2820.
This commit is contained in:
nicm
2021-08-12 08:10:20 +00:00
parent 163908fe8a
commit 26773ea9ef
2 changed files with 2 additions and 2 deletions

View File

@ -3098,7 +3098,7 @@ format_log_debug_cb(const char *key, const char *value, void *arg)
void
format_log_debug(struct format_tree *ft, const char *prefix)
{
format_each(ft, format_log_debug_cb, prefix);
format_each(ft, format_log_debug_cb, (void *)prefix);
}
/* Walk each format. */