diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-10 16:00:34 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-10 16:00:34 +0200 |
commit | 58f8347e84d2820cada64c513bb0f2b81ecd494a (patch) | |
tree | 758f5f2241c384b8d0e8ce349498784515ae5607 /src/mds-colour.c | |
parent | Add -l flags for mds-libinput (diff) | |
download | mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.gz mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.bz2 mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.xz |
Fix new GCC warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/mds-colour.c')
-rw-r--r-- | src/mds-colour.c | 2 |
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)); |