Skip to content

Commit 9be55be

Browse files
committed
Attempt to fix segfault due to retval is not initialized
1 parent b2fe342 commit 9be55be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/session/mod_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static zval *ps_call_handler(zval *func, int argc, zval **argv TSRMLS_DC)
6363
}
6464

6565
#define STDVARS \
66-
zval *retval; \
66+
zval *retval = NULL; \
6767
int ret = FAILURE
6868

6969
#define PSF(a) PS(mod_user_names).name.ps_##a

0 commit comments

Comments
 (0)