From b0273e749ca09b6c89dc44e5f33ed6ac788f7a40 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Thu, 6 Feb 2014 20:43:17 +0100 Subject: [PATCH] Fix issue 68 (made check win only) --- phpdbg.c | 10 +++++----- 1 file 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; -- 2.40.0