clang3 says: Branch condition evaluates to a garbage value
This commit is contained in:
parent
c8ee91f02d
commit
18dc21bd85
4
jobs.c
4
jobs.c
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#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
|
#if HAVE_KILLPG
|
||||||
#define mksh_killpg 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,
|
strlcpy(buf, sigtraps[WTERMSIG(p->status)].mess,
|
||||||
sizeof(buf));
|
sizeof(buf));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
buf[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (how != JP_SHORT) {
|
if (how != JP_SHORT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user