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:
5
var.c
5
var.c
@ -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:
|
||||
|
Reference in New Issue
Block a user