diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-31 20:33:21 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-31 20:33:21 +0000 |
commit | 9c384ade94b8670b96e11fe795ceaa5bc66ed3b9 (patch) | |
tree | 0cf3b246dfc892b5ba3031dbd0df3a2d1499e564 /funcs | |
parent | 0fade46c8220fff85c24c50332fa0c28201910d8 (diff) |
Merged revisions 95470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r95470 | tilghman | 2007-12-31 14:27:26 -0600 (Mon, 31 Dec 2007) | 3 lines
Allow the default "0" to be returned if the STAT fails
(Closes issue #11659)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95490 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 90f582e70..4eba211bb 100644 --- a/funcs/func_env.c +++ b/funcs/func_env.c @@ -73,7 +73,7 @@ static int stat_read(struct ast_channel *chan, const char *cmd, char *data, action = strsep(&data, ","); if (stat(data, &s)) { - return -1; + return 0; } else { switch (*action) { case 'e': |