clang3 says: Branch condition evaluates to a garbage value

This commit is contained in:
tg 2011-12-31 00:52:22 +00:00
parent c8ee91f02d
commit 18dc21bd85
1 changed files with 3 additions and 1 deletions

4
jobs.c
View File

@ -22,7 +22,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.81 2011/08/27 18:06:46 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.82 2011/12/31 00:52:22 tg Exp $");
#if HAVE_KILLPG
#define mksh_killpg killpg
@ -1491,6 +1491,8 @@ j_print(Job *j, int how, struct shf *shf)
strlcpy(buf, sigtraps[WTERMSIG(p->status)].mess,
sizeof(buf));
break;
default:
buf[0] = '\0';
}
if (how != JP_SHORT) {