fix redefining FKSH functions as !FKSH (e.g. the smores change)

This commit is contained in:
tg 2016-04-09 16:41:07 +00:00
parent da085fd7d2
commit 83cde99aee
1 changed files with 2 additions and 2 deletions

4
exec.c
View File

@ -23,7 +23,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.172 2016/03/01 18:30:04 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.173 2016/04/09 16:41:07 tg Exp $");
#ifndef MKSH_DEFAULT_EXECSHELL
#define MKSH_DEFAULT_EXECSHELL MKSH_UNIXROOT "/bin/sh"
@ -1084,7 +1084,7 @@ define(const char *name, struct op *t)
}
if (tp->flag & ALLOC) {
tp->flag &= ~(ISSET|ALLOC);
tp->flag &= ~(ISSET|ALLOC|FKSH);
tfree(tp->val.t, tp->areap);
}