ok, icc _did_ track down a few ones, and I fixed errno abuse a little too

however, bad S/N ratio

side effect bonus: smaller code size now
This commit is contained in:
tg
2007-06-06 23:28:17 +00:00
parent ffd63798f3
commit 3dcf22a319
13 changed files with 98 additions and 111 deletions

5
var.c
View File

@ -2,7 +2,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.38 2007/05/13 17:51:24 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.39 2007/06/06 23:28:17 tg Exp $");
/*
* Variables
@ -953,7 +953,8 @@ setspec(struct tbl *vp)
case V_PATH:
if (path)
afree(path, APERM);
path = str_save(str_val(vp), APERM);
s = str_val(vp);
path = str_save(s, APERM);
flushcom(1); /* clear tracked aliases */
break;
case V_IFS: