Blame SOURCES/ksh-20120801-fununset.patch

5a79ad
diff -up ksh-20120801/src/cmd/ksh93/sh/xec.c.fununset ksh-20120801/src/cmd/ksh93/sh/xec.c
5a79ad
--- ksh-20120801/src/cmd/ksh93/sh/xec.c.fununset	2014-06-16 14:21:09.293513844 +0200
5a79ad
+++ ksh-20120801/src/cmd/ksh93/sh/xec.c	2014-06-16 14:21:09.309513760 +0200
5a79ad
@@ -3570,7 +3570,7 @@ static void sh_funct(Shell_t *shp,Namval
5a79ad
 #endif
5a79ad
 	nv_putval(SH_PATHNAMENOD,shp->st.filename,NV_NOFREE);
5a79ad
 	shp->pipepid = pipepid;
5a79ad
-	np->nvalue.rp->running  -= 2;
5a79ad
+	if (np->nvalue.rp) np->nvalue.rp->running  -= 2;
5a79ad
 }
5a79ad
 
5a79ad
 /*