(very few) fixes and a couple of workarounds for Coverity
This commit is contained in:
4
tree.c
4
tree.c
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.88 2017/04/11 12:34:04 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.89 2017/04/12 16:46:23 tg Exp $");
|
||||
|
||||
#define INDENT 8
|
||||
|
||||
@@ -58,7 +58,7 @@ ptree(struct op *t, int indent, struct shf *shf)
|
||||
case TCOM:
|
||||
prevent_semicolon = false;
|
||||
/* special-case 'var=<<EOF' (cf. exec.c:execute) */
|
||||
if (
|
||||
if (t->args &&
|
||||
/* we have zero arguments, i.e. no program to run */
|
||||
t->args[0] == NULL &&
|
||||
/* we have exactly one variable assignment */
|
||||
|
Reference in New Issue
Block a user