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

russell at lists.digium.com russell at lists.digium.com
Sun Dec 19 20:44:27 CST 2004


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

Modified Files:
      Tag: v1-0
	app_read.c 
Log Message:
don't return -1 if user enters nothing (bug #3042)


Index: app_read.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_read.c,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -d -r1.9 -r1.9.2.1
--- app_read.c	2 Sep 2004 13:52:58 -0000	1.9
+++ app_read.c	20 Dec 2004 01:40:29 -0000	1.9.2.1
@@ -106,8 +106,9 @@
 		if (res > -1) {
 			pbx_builtin_setvar_helper(chan, varname, tmp);
 			ast_verbose(VERBOSE_PREFIX_3 "User entered '%s'\n", tmp);
+			res = 0;
 		} else {
-			ast_verbose(VERBOSE_PREFIX_3 "User entered nothing\n");
+			ast_verbose(VERBOSE_PREFIX_3 "User disconnected\n");
 		}
 	}
 	LOCAL_USER_REMOVE(u);




More information about the svn-commits mailing list