]> granicus.if.org Git - php/commitdiff
#I hope this is the correct way to 'fix' this.
authorEvan Klinger <evan@php.net>
Wed, 3 Nov 1999 02:53:52 +0000 (02:53 +0000)
committerEvan Klinger <evan@php.net>
Wed, 3 Nov 1999 02:53:52 +0000 (02:53 +0000)
Fix compile warning

ext/standard/basic_functions.c

index ebc46250f09f9d1abd083401127a77416d8d2b0b..a9f03572b7be8825304283952fd0f3215788f3a3 100644 (file)
@@ -3255,7 +3255,7 @@ PHP_FUNCTION(array_pad)
        
        /* Populate the pads array */
        num_pads = pad_size_abs - input_size;
-       pads = (zval **)emalloc(num_pads * sizeof(zval **));
+       pads = (zval ***)emalloc(num_pads * sizeof(zval **));
        for (i = 0; i < num_pads; i++)
                pads[i] = pad_value;