com php-src: Fix issue 68 (made check win only): phpdbg.c
| From: | Bob Weinand | Date: | Thu, 06 Feb 2014 19:43:17 +0000 |
| Subject: | com php-src: Fix issue 68 (made check win only): phpdbg.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77080@lists.php.net to get a copy of this message | ||
Commit: b0273e749ca09b6c89dc44e5f33ed6ac788f7a40
Author: Bob Weinand <bobwei9@hotmail.com> Thu, 6 Feb 2014 20:43:17 +0100
Parents: 891477dc1c3ae795708c022e3e023c5a7b7e0128
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b0273e749ca09b6c89dc44e5f33ed6ac788f7a40
Log:
Fix issue 68 (made check win only)
Changed paths:
M phpdbg.c
Diff:
diff --git a/phpdbg.c b/phpdbg.c
index 6cb1645..fa14b66 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;