diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-31 20:27:26 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-31 20:27:26 +0000 |
commit | 4889cb40b38d515fbe1612b55159f69b99fe93e3 (patch) | |
tree | 2b96b5edac25907e92b7b891cd724cc43eeb09bb /funcs | |
parent | 915a43c2bb035da09cebf398e8e6606032e05653 (diff) |
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
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_env.c | 2 |
1 files changed, 1 insertions, 1 deletions
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': |