aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-27 15:38:03 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-27 15:38:03 +0000
commit2d80f1c23a5eede426a0db66bc5f634441fdcaed (patch)
tree639e58db1b6c17cfda703d8735ff06c8596de3c5
parent9d77e3fc14c6cc24c2e2c2163380f83dd756a716 (diff)
Default result of STAT should be "0" not "".
Reported via the -users mailing list, fixed by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89631 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--funcs/func_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_env.c b/funcs/func_env.c
index 6747d4f29..f60adb6d5 100644
--- a/funcs/func_env.c
+++ b/funcs/func_env.c
@@ -73,7 +73,7 @@ static int stat_read(struct ast_channel *chan, char *cmd, char *data,
char *action;
struct stat s;
- *buf = '\0';
+ ast_copy_string(buf, "0", len);
action = strsep(&data, "|");
if (stat(data, &s)) {