[xutil] Fix strdup() usage
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
eacd9b1e69
commit
2a4971b725
|
@ -171,7 +171,7 @@ xutil_intern_atom(xcb_connection_t *c, xutil_atom_cache_t **atoms,
|
||||||
xutil_atom_cache_t *atom_next;
|
xutil_atom_cache_t *atom_next;
|
||||||
int cmp_cache;
|
int cmp_cache;
|
||||||
|
|
||||||
atom_req.name = strdup(name);
|
atom_req.name = a_strdup(name);
|
||||||
|
|
||||||
/* Check if this atom is present in the cache ordered
|
/* Check if this atom is present in the cache ordered
|
||||||
* linked-list */
|
* linked-list */
|
||||||
|
|
Loading…
Reference in New Issue