From: Pierre Habouzit Date: Sun, 3 Dec 2006 19:29:09 +0000 (+0100) Subject: oops, d can be NULL ! X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=commitdiff_plain;h=23976263ea635d42933503805f9eca006ae24daf oops, d can be NULL ! Signed-off-by: Pierre Habouzit --- diff --git a/alias.c b/alias.c index fdf74c0..5eab9db 100644 --- a/alias.c +++ b/alias.c @@ -160,7 +160,8 @@ static int alias_sanitize(const char *s, char *d) s++; } - *d = '\0'; + if (d) + *d = '\0'; return rv; }