diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-01-10 10:36:42 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-01-10 10:36:42 +0000 |
commit | fa8ac34c1a89377ae913cd8e14fbe92c9359bdb1 (patch) | |
tree | 5644be3372f930810d5846a5565728d9c408c8e4 /lib.c | |
parent | 544e8ba393e9c1ca55b120f209383742211007c8 (diff) |
Use safe_free() instead of free() with mutt_str_replace -
equivalent, but nicer.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -145,8 +145,7 @@ char *safe_strdup (const char *s) void mutt_str_replace (char **p, const char *s) { - if (*p) - free (*p); + safe_free ((void **) p); *p = safe_strdup (s); } |