summaryrefslogtreecommitdiff
path: root/phpdbg.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-02-06 20:43:17 +0100
committerBob Weinand <bobwei9@hotmail.com>2014-02-06 20:43:17 +0100
commitb0273e749ca09b6c89dc44e5f33ed6ac788f7a40 (patch)
treee52743fca5309df5e9dff34d682b6c6e22466217 /phpdbg.c
parent891477dc1c3ae795708c022e3e023c5a7b7e0128 (diff)
downloadphp-git-b0273e749ca09b6c89dc44e5f33ed6ac788f7a40.tar.gz
Fix issue 68 (made check win only)
Diffstat (limited to 'phpdbg.c')
-rw-r--r--phpdbg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpdbg.c b/phpdbg.c
index 6cb1645e65..fa14b6687d 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -887,17 +887,17 @@ phpdbg_main:
bp_tmp_file = NULL;
}
}
+
+ if (!bp_tmp_file) {
+ phpdbg_error("Unable to create temporary file");
+ return 1;
+ }
#else
if (!mkstemp(bp_tmp_file)) {
memset(bp_tmp_file, 0, sizeof(bp_tmp_file));
}
#endif
- if (!bp_tmp_file) {
- phpdbg_error(
- "Unable to create temporary file");
- return 1;
- }
}
ini_entries = NULL;
ini_entries_len = 0;