From: Shane Caraveo Date: Mon, 15 Jan 2001 00:57:16 +0000 (+0000) Subject: check files open X-Git-Tag: php-4.0.5RC1~575 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c88be3f8b346e1f72c6a991d17253bfaccd5a874;p=php check files open --- diff --git a/sapi/isapi/stresstest/stresstest.cpp b/sapi/isapi/stresstest/stresstest.cpp index d43bc5ef57..2b5e5b8380 100644 --- a/sapi/isapi/stresstest/stresstest.cpp +++ b/sapi/isapi/stresstest/stresstest.cpp @@ -218,7 +218,7 @@ BOOL ParseTestFile(const char *path, const char *fn) char *en = _tempnam(temppath,"exp."); FILE *ft = fopen(tn, "w+"); FILE *fe = fopen(en, "w+"); - if (fp) { + if (fp && ft && fe) { while (fgets(line,sizeof(line)-1,fp)) { if (line[0]=='-') { if (_strnicmp(line, "--TEST--", 8)==0) {