diff --git a/apps/app_read.c b/apps/app_read.c index 3819afed198e28b290d9b51b57e79e4f4bad1bb7..4cba132aa57234069094b6b6430719fd53a509a6 100755 --- a/apps/app_read.c +++ b/apps/app_read.c @@ -86,7 +86,7 @@ static int read_exec(struct ast_channel *chan, void *data) if (!res) { ast_stopstream(chan); res = ast_app_getdata(chan, filename, tmp, maxdigits, 0); - if (!res) + if (res > -1) pbx_builtin_setvar_helper(chan, varname, tmp); ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp); }