[Asterisk-cvs] asterisk/apps app_read.c,1.8,1.9

markster at lists.digium.com markster at lists.digium.com
Thu Sep 2 09:49:45 CDT 2004


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv12770/apps

Modified Files:
	app_read.c 
Log Message:
Fix both app_read and underlying read issue (bug #2352)


Index: app_read.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_read.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- app_read.c	30 Jun 2004 16:04:28 -0000	1.8
+++ app_read.c	2 Sep 2004 13:52:58 -0000	1.9
@@ -103,9 +103,12 @@
 	if (!res) {
 		ast_stopstream(chan);
 		res = ast_app_getdata(chan, filename, tmp, maxdigits, 0);
-		if (res > -1)
+		if (res > -1) {
 			pbx_builtin_setvar_helper(chan, varname, tmp);
-		ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
+			ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
+		} else {
+			ast_verbose(VERBOSE_PREFIX_3 "User entered nothing\n");
+		}
 	}
 	LOCAL_USER_REMOVE(u);
 	return res;




More information about the svn-commits mailing list