mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 06:30:54 +00:00
libsysprof-capture: wrap strdup to be NULL-safe
This commit is contained in:
committed by
Philip Withnall
parent
6a45f020f7
commit
cef698e658
@ -73,3 +73,5 @@
|
||||
if (_p != NULL) \
|
||||
(destroy) (_p); \
|
||||
} while (0)
|
||||
|
||||
#define sysprof_strdup(s) ((s) ? strdup(s) : NULL)
|
||||
|
||||
Reference in New Issue
Block a user