X-Git-Url: http://git.asterisk.org/gitweb/?p=asterisk%2Fasterisk.git;a=blobdiff_plain;f=apps%2Fapp_cut.c;h=18de2d10a79e77dd2ed808246eb0f1f496cbc318;hp=1d3cf5b89e829b855d4cade74ada33fd935afa05;hb=39a358ef560b3d61df929b1fce177e195a9df5f2;hpb=f62061aa78f44cb1782af65de4cd11cc3de01213 diff --git a/apps/app_cut.c b/apps/app_cut.c index 1d3cf5b..18de2d1 100755 --- a/apps/app_cut.c +++ b/apps/app_cut.c @@ -85,6 +85,8 @@ static int cut_exec(struct ast_channel *chan, void *data) char *tmp2 = alloca(MAXRESULT); char retstring[MAXRESULT]; + if (tmp2) + memset(tmp2, 0, MAXRESULT); memset(retstring, 0, MAXRESULT); if (tmp && tmp2) {