aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-colour.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-colour.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-colour.c b/src/mds-colour.c
index 9179a61..f7a5722 100644
--- a/src/mds-colour.c
+++ b/src/mds-colour.c
@@ -767,7 +767,7 @@ int set_colour(const char* name, const colour_t* colour)
/* `colour_list_put` will store the name of the colour,
so we have to make a copy that will not disappear. */
- fail_if (xstrdup(name_, name));
+ fail_if (xstrdup_nn(name_, name));
/* Add or modify the colour. */
fail_if (colour_list_put(&colours, name_, colour));