[svn-commits] tilghman: branch 1.4 r95470 - /branches/1.4/funcs/func_env.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Dec 31 14:27:27 CST 2007


Author: tilghman
Date: Mon Dec 31 14:27:26 2007
New Revision: 95470

URL: http://svn.digium.com/view/asterisk?view=rev&rev=95470
Log:
Allow the default "0" to be returned if the STAT fails
(Closes issue #11659)

Modified:
    branches/1.4/funcs/func_env.c

Modified: branches/1.4/funcs/func_env.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/funcs/func_env.c?view=diff&rev=95470&r1=95469&r2=95470
==============================================================================
--- branches/1.4/funcs/func_env.c (original)
+++ branches/1.4/funcs/func_env.c Mon Dec 31 14:27:26 2007
@@ -77,7 +77,7 @@
 
 	action = strsep(&data, "|");
 	if (stat(data, &s)) {
-		return -1;
+		return 0;
 	} else {
 		switch (*action) {
 		case 'e':




More information about the svn-commits mailing list