diff options
author | Robert S. French <rfrench@mit.edu> | 1988-01-20 09:33:11 +0000 |
---|---|---|
committer | Robert S. French <rfrench@mit.edu> | 1988-01-20 09:33:11 +0000 |
commit | bd40cc047e7d050a29b8e9c50ad024c197898001 (patch) | |
tree | 4c72ba1e1723c4cb652f3ad2bb8fab6161401ea0 /lib/ZVariables.c | |
parent | 3f337ec709479fd335df314d802efa67ef731121 (diff) |
Fixed more unwritable filesystem type lossage
Diffstat (limited to 'lib/ZVariables.c')
-rw-r--r-- | lib/ZVariables.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ZVariables.c b/lib/ZVariables.c index de86402..1413506 100644 --- a/lib/ZVariables.c +++ b/lib/ZVariables.c @@ -91,10 +91,8 @@ Code_t ZUnsetVariable(var) strcpy(varfilebackup,varfile); strcat(varfilebackup,".backup"); - if (!(fpout = fopen(varfilebackup,"w"))) { - fclose(fpin); + if (!(fpout = fopen(varfilebackup,"w"))) return (errno); - } if (fpin = fopen(varfile,"r")) { while (fgets(varbfr,sizeof varbfr,fpin) != (char *) 0) { if (varbfr[strlen(varbfr)-1] < ' ') |