]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Default result of STAT should be "0" not "".
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 27 Nov 2007 15:38:03 +0000 (15:38 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 27 Nov 2007 15:38:03 +0000 (15:38 +0000)
Reported via the -users mailing list, fixed by me.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89631 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_env.c

index 6747d4f29395618b09a2149d683c0f32e89b1b86..f60adb6d58c9ed1cbfeeb69285d31b9318b13f06 100644 (file)
@@ -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)) {