Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
fix segfault on mac
Browse files Browse the repository at this point in the history
Change-Id: I44b563da95a48163ffee2ccd4a31dcaa048658c0
Reviewed-on: http://review.couchbase.org/13626
Reviewed-by: Jan Lehnardt <jan@couchbase.com>
Tested-by: Jan Lehnardt <jan@couchbase.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
  • Loading branch information
janl authored and ingenthr committed Feb 27, 2012
1 parent fdd255a commit 0078cb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions couchbase.c
Expand Up @@ -1436,11 +1436,12 @@ static void php_couchbase_get_impl(INTERNAL_FUNCTION_PARAMETERS, int multi, int
callback
#endif
) {
zval *retval_ptr, *result, *zkey;
zval *result, *zkey, *retval_ptr = NULL;
zval **params[3];

MAKE_STD_ZVAL(result);
MAKE_STD_ZVAL(zkey);
ZVAL_NULL(result);
ZVAL_STRINGL(zkey, key, klen, 1);
if (oo) {
params[0] = &(getThis());
Expand Down Expand Up @@ -1628,7 +1629,7 @@ static void php_couchbase_get_delayed_impl(INTERNAL_FUNCTION_PARAMETERS, int oo)
callback
#endif
) {
zval *result, **ppzval, *retval_ptr;
zval *result, **ppzval, *retval_ptr = NULL;
zval **params[2];

MAKE_STD_ZVAL(result);
Expand Down

0 comments on commit 0078cb3

Please sign in to comment.