]> granicus.if.org Git - php/commitdiff
Fix newly introduced compiler warning
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 1 Feb 2021 08:46:17 +0000 (09:46 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 3 Feb 2021 11:42:28 +0000 (12:42 +0100)
(cherry picked from commit ab8177de2c89672e63a7a1ccef4df8f7bf34fbd2)

ext/soap/php_sdl.c

index 67ab4097c2d7a7a58c5aea9ef0c9edbca8349695..ee7d6045207bdc3bccd167f897fdabce1bc17191 100644 (file)
@@ -313,7 +313,7 @@ void sdl_restore_uri_credentials(sdlCtx *ctx)
        ctx->context = NULL;
 }
 
-#define SAFE_STR(a) ((a)?a:"")
+#define SAFE_STR(a) ((a)?((const char *)a):"")
 
 static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include)
 {