summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-01-10 10:36:42 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-01-10 10:36:42 +0000
commitfa8ac34c1a89377ae913cd8e14fbe92c9359bdb1 (patch)
tree5644be3372f930810d5846a5565728d9c408c8e4 /lib.c
parent544e8ba393e9c1ca55b120f209383742211007c8 (diff)
Use safe_free() instead of free() with mutt_str_replace -
equivalent, but nicer.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index d16a5e14..04c93ec8 100644
--- a/lib.c
+++ b/lib.c
@@ -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);
}