diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-27 15:41:46 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-11-27 15:41:46 +0000 |
commit | fd06a588000a7f2f942040bb5f3f172df8d254d0 (patch) | |
tree | ddbdb462ad728ba13acd64ba1425a20ae2279222 /funcs/func_env.c | |
parent | b1c0c67e762a23cf56c1c9fe5d10bf9671329fae (diff) |
Merged revisions 89631 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r89631 | tilghman | 2007-11-27 09:38:03 -0600 (Tue, 27 Nov 2007) | 3 lines
Default result of STAT should be "0" not "".
Reported via the -users mailing list, fixed by me.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_env.c')
-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 362e9db50..90f582e70 100644 --- a/funcs/func_env.c +++ b/funcs/func_env.c @@ -69,7 +69,7 @@ static int stat_read(struct ast_channel *chan, const char *cmd, char *data, char *action; struct stat s; - *buf = '\0'; + ast_copy_string(buf, "0", len); action = strsep(&data, ","); if (stat(data, &s)) { |