Do not log NULL text.

pull/2219/head
Nicholas Marriott 2020-05-12 10:36:31 +01:00
parent 8d238491d0
commit ba20e46bdc
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ mode_tree_add(struct mode_tree_data *mtd, struct mode_tree_item *parent,
struct mode_tree_item *mti, *saved;
log_debug("%s: %llu, %s %s", __func__, (unsigned long long)tag,
name, text);
name, (text == NULL ? "" : text));
mti = xcalloc(1, sizeof *mti);
mti->parent = parent;