]> granicus.if.org Git - php/commitdiff
Fix compilation (strict compilers require constant initializers).
authorJon Parise <jon@php.net>
Sat, 7 Apr 2001 18:22:29 +0000 (18:22 +0000)
committerJon Parise <jon@php.net>
Sat, 7 Apr 2001 18:22:29 +0000 (18:22 +0000)
ext/yp/yp.c

index d0205ecd258388ce4ee6c0910da791e8297aa4e1..7e680920f2a2b063b163337eee92abe74d04267d 100644 (file)
@@ -215,10 +215,14 @@ static int php_foreach_all (int instatus, char *inkey, int inkeylen, char *inval
 {
        int r;
        zval *status, *key, *value;
-       zval **args [3] = { &status, &key, &value };
+       zval **args [3];
        zval *retval;
        CLS_FETCH();
 
+       args[0] = &status;
+       args[1] = &key;
+       args[2] = &value;
+
        MAKE_STD_ZVAL (status);
        ZVAL_LONG (status, ypprot_err (instatus));