about summary refs log tree commit diff
path: root/Src/init.c
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-04-23 04:20:22 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-04-23 04:20:22 +0000
commiteaf13e9eabfc0531d6e3dedc090f0f495c8139d4 (patch)
tree3d0fc83c6414b476099c0c572f11cc69b73b21b6 /Src/init.c
parentf355b42e167ab7e2263c23f52a237a6706b610b6 (diff)
downloadzsh-eaf13e9eabfc0531d6e3dedc090f0f495c8139d4.tar.gz
zsh-eaf13e9eabfc0531d6e3dedc090f0f495c8139d4.tar.xz
zsh-eaf13e9eabfc0531d6e3dedc090f0f495c8139d4.zip
Merge of 21049: Don't close process substitution file descriptors for external programmes
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/init.c b/Src/init.c
index 58b390bfa..64c2fa041 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -1050,7 +1050,7 @@ source(char *s)
 	freeeprog(prog);
     else {
 	fclose(bshin);
-	fdtable[SHIN] = 0;
+	fdtable[SHIN] = FDT_UNUSED;
 	SHIN = fd;		     /* the shell input fd                   */
 	bshin = obshin;		     /* file handle for buffered shell input */
     }
@@ -1250,7 +1250,7 @@ zsh_main(UNUSED(int argc), char **argv)
     } while (zsh_name);
 
     fdtable_size = zopenmax();
-    fdtable = zshcalloc(fdtable_size);
+    fdtable = zshcalloc(fdtable_size*sizeof(*fdtable));
 
     createoptiontable();
     emulate(zsh_name, 1);   /* initialises most options */