From 4889cb40b38d515fbe1612b55159f69b99fe93e3 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 31 Dec 2007 20:27:26 +0000 Subject: Allow the default "0" to be returned if the STAT fails (Closes issue #11659) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@95470 f38db490-d61c-443f-a65b-d21fe96a405b --- funcs/func_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'funcs') diff --git a/funcs/func_env.c b/funcs/func_env.c index f60adb6d5..01ec4958d 100644 --- a/funcs/func_env.c +++ b/funcs/func_env.c @@ -77,7 +77,7 @@ static int stat_read(struct ast_channel *chan, char *cmd, char *data, action = strsep(&data, "|"); if (stat(data, &s)) { - return -1; + return 0; } else { switch (*action) { case 'e': -- cgit v1.2.3