From 1a33277e3d86bc35fd9f5b7a1b850f7f493149ea Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Thu, 8 Jul 1999 17:15:43 +0000 Subject: [PATCH] Avoid sending NULL argument to printf --- main/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/main.c b/main/main.c index cff04cc4a3..71bc4d603f 100644 --- a/main/main.c +++ b/main/main.c @@ -574,13 +574,13 @@ static void php_message_handler_for_zend(long message, void *data) case ZMSG_FAILED_INCLUDE_FOPEN: { PLS_FETCH(); - php3_error(E_WARNING, "Failed opening '%s' for inclusion (include_path='%s')", php3_strip_url_passwd((char *) data), PG(include_path)); + php3_error(E_WARNING, "Failed opening '%s' for inclusion (include_path='%s')", php3_strip_url_passwd((char *) data), STR_PRINT(PG(include_path))); } break; case ZMSG_FAILED_REQUIRE_FOPEN: { PLS_FETCH(); - php3_error(E_COMPILE_ERROR, "Failed opening required '%s' (include_path='%s')", php3_strip_url_passwd((char *) data), PG(include_path)); + php3_error(E_COMPILE_ERROR, "Failed opening required '%s' (include_path='%s')", php3_strip_url_passwd((char *) data), STR_PRINT(PG(include_path))); } break; case ZMSG_FAILED_HIGHLIGHT_FOPEN: -- 2.50.1