From 2d80f1c23a5eede426a0db66bc5f634441fdcaed Mon Sep 17 00:00:00 2001 From: tilghman Date: Tue, 27 Nov 2007 15:38:03 +0000 Subject: 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 --- funcs/func_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.3