From: Tilghman Lesher Date: Mon, 11 May 2009 19:32:13 +0000 (+0000) Subject: Don't nullify an ast_str pointer. X-Git-Tag: 11.0.0-beta1~4908 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52541f5aeb7db910f943f8b6909ef40437cf34e9;p=thirdparty%2Fasterisk.git Don't nullify an ast_str pointer. (closes issue #15061) Reported by: alecdavis git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@193678 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b5d7f592e8..3381cfc6ce 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3983,7 +3983,6 @@ static const char *ast_str_encode_mime(struct ast_str **end, ssize_t maxlen, con { struct ast_str *tmp = ast_str_alloca(80); int first_section = 1; - *end = '\0'; ast_str_reset(*end); ast_str_set(&tmp, -1, "=?%s?Q?", charset);