From: Bob Weinand Date: Thu, 6 Feb 2014 19:43:17 +0000 (+0100) Subject: Fix issue 68 (made check win only) X-Git-Tag: php-5.6.0beta2~1^2~37^2~23^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0273e749ca09b6c89dc44e5f33ed6ac788f7a40;p=php Fix issue 68 (made check win only) --- 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;