summaryrefslogtreecommitdiffstats
path: root/mode-tree.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2020-05-12 10:36:31 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-05-12 10:36:31 +0100
commitba20e46bdc6d4624f54920c0efe753671c5184bb (patch)
tree3b736fa447853f76dee57e11e8b9793c47039595 /mode-tree.c
parent8d238491d01f21f5be5d6f8755126a0da6ad914c (diff)
Do not log NULL text.
Diffstat (limited to 'mode-tree.c')
-rw-r--r--mode-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mode-tree.c b/mode-tree.c
index 0b454468..131830d6 100644
--- a/mode-tree.c
+++ b/mode-tree.c
@@ -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;