From db2cfde087e37ac92b88dcfcfd5ef8d7d63d7af2 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Sat, 7 Apr 2001 18:22:29 +0000 Subject: [PATCH] Fix compilation (strict compilers require constant initializers). --- ext/yp/yp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/yp/yp.c b/ext/yp/yp.c index d0205ecd258..7e680920f2a 100644 --- a/ext/yp/yp.c +++ b/ext/yp/yp.c @@ -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));