]> granicus.if.org Git - php/commitdiff
Fix issue 68 (made check win only)
authorBob Weinand <bobwei9@hotmail.com>
Thu, 6 Feb 2014 19:43:17 +0000 (20:43 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Thu, 6 Feb 2014 19:43:17 +0000 (20:43 +0100)
phpdbg.c

index 6cb1645e65a02bbf3fb5c6c287ba38c24fc536a5..fa14b6687d3ec6ab82934d96bd18b4e5ed766ecd 100644 (file)
--- 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;