]> granicus.if.org Git - php/commitdiff
Remove unnecessary initialization in phpdbg webhelper
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 23 Jun 2020 12:28:07 +0000 (14:28 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 23 Jun 2020 12:29:24 +0000 (14:29 +0200)
This whole code is very dubious and should possibly be dropped. For
now just fix the build warning.

sapi/phpdbg/phpdbg_webdata_transfer.c

index 85e4c25a61102900a1307df71a02516c89c87aa0..81f747d69f8aa4592dcbe0cb0b39e9eb7eb7da30 100644 (file)
@@ -28,7 +28,7 @@ static int phpdbg_is_auto_global(char *name, int len) {
 PHPDBG_API void phpdbg_webdata_compress(char **msg, size_t *len) {
        zval array;
        HashTable *ht;
-       zval zv[9] = {{{0}}};
+       zval zv[9];
 
        array_init(&array);
        ht = Z_ARRVAL(array);