[asterisk-commits] mmichelson: branch 1.4 r150301 - /branches/1.4/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 16 18:35:08 CDT 2008


Author: mmichelson
Date: Thu Oct 16 18:35:07 2008
New Revision: 150301

URL: http://svn.digium.com/view/asterisk?view=rev&rev=150301
Log:
And don't forget to return on the error condition


Modified:
    branches/1.4/main/manager.c

Modified: branches/1.4/main/manager.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/manager.c?view=diff&rev=150301&r1=150300&r2=150301
==============================================================================
--- branches/1.4/main/manager.c (original)
+++ branches/1.4/main/manager.c Thu Oct 16 18:35:07 2008
@@ -1501,6 +1501,7 @@
 		char *copy = ast_strdupa(varname);
 		if (!c) {
 			astman_send_error(s, m, "No such channel");
+			return 0;
 		}
 		ast_func_read(c, copy, workspace, sizeof(workspace));
 		varval = workspace;




More information about the asterisk-commits mailing list