opnsense-ports/shells/pdksh/files/patch-eval.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
296 B
C

Index: eval.c
--- eval.c 25 Nov 2004 04:36:47 -0000 1.15
+++ eval.c 7 Dec 2004 16:20:20 -0000
@@ -792,6 +792,7 @@
}
if (e->loc->argc == 0) {
xp->str = null;
+ xp->var = global(sp);
state = c == '@' ? XNULLSUB : XSUB;
} else {
xp->u.strv = (const char **) e->loc->argv + 1;