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/branches/1.4@89631 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Tilghman Lesher 18 years ago
parent 0c3ec937ce
commit 1d33d680b9

@ -73,7 +73,7 @@ static int stat_read(struct ast_channel *chan, char *cmd, char *data,
char *action; char *action;
struct stat s; struct stat s;
*buf = '\0'; ast_copy_string(buf, "0", len);
action = strsep(&data, "|"); action = strsep(&data, "|");
if (stat(data, &s)) { if (stat(data, &s)) {

Loading…
Cancel
Save