From d6a18a773899d07750b30082b5f5ce36aa3c70df Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 16 Oct 2020 18:38:03 +0200 Subject: Properly handle NULL output start filename --- main/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/output.c b/main/output.c index cffadede80..d155123834 100644 --- a/main/output.c +++ b/main/output.c @@ -758,7 +758,7 @@ PHPAPI void php_output_set_implicit_flush(int flush) * Get the file name where output has started */ PHPAPI const char *php_output_get_start_filename(void) { - return ZSTR_VAL(OG(output_start_filename_str)); + return OG(output_start_filename_str) ? ZSTR_VAL(OG(output_start_filename_str)) : NULL; } /* }}} */ -- cgit v1.2.1