diff options
| author | Jon Parise <jon@php.net> | 2001-04-07 18:22:29 +0000 |
|---|---|---|
| committer | Jon Parise <jon@php.net> | 2001-04-07 18:22:29 +0000 |
| commit | db2cfde087e37ac92b88dcfcfd5ef8d7d63d7af2 (patch) | |
| tree | fbb6dd3e587a46625b8111e82d92d294e9f33199 | |
| parent | 9762f64222f260b39fadc0464882c71ce5096490 (diff) | |
| download | php-git-db2cfde087e37ac92b88dcfcfd5ef8d7d63d7af2.tar.gz | |
Fix compilation (strict compilers require constant initializers).
| -rw-r--r-- | ext/yp/yp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/yp/yp.c b/ext/yp/yp.c index d0205ecd25..7e680920f2 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)); |
