diff --git a/phpdbg.c b/phpdbg.c index 9341ad35a50..6cb1645e65a 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -892,9 +892,11 @@ phpdbg_main: memset(bp_tmp_file, 0, sizeof(bp_tmp_file)); } #endif - + if (!bp_tmp_file) { - phpdbg_error("Unable to create temporary file"); + phpdbg_error( + "Unable to create temporary file"); + return 1; } } ini_entries = NULL;