diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-07-27 10:55:59 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-07-27 10:58:03 +0200 |
commit | d6eee302151c0316fddc100b9f1c02021f836fcb (patch) | |
tree | 8f28220de691e163e4051320128f88fbd251d3c6 /src | |
parent | 3fe99420177809180ccd3d6cf117b37fe8d6f9bc (diff) | |
download | calcurse-d6eee302151c0316fddc100b9f1c02021f836fcb.zip |
Do not error out when calling xfree(NULL)
Calling free() with NULL as parameter is perfectly safe, no need to
error out here.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/mem.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -121,7 +121,6 @@ char *xstrdup(const char *str) void xfree(void *p) { - EXIT_IF(p == NULL, _("xfree: null pointer")); free(p); } |