aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app.c b/app.c
index 86ad5077c..401b4451a 100755
--- a/app.c
+++ b/app.c
@@ -37,6 +37,8 @@ int ast_app_getdata(struct ast_channel *c, char *prompt, char *s, int maxlen, in
{
int res,to,fto;
/* XXX Merge with full version? XXX */
+ if (maxlen)
+ s[0] = '\0';
if (prompt) {
res = ast_streamfile(c, prompt, c->language);
if (res < 0)