Skip to content

Commit 61896ac

Browse files
committed
Fix: warning: 'plist_key_len' may be used uninitialized in this function [-Wmaybe-uninitialized] (false positive, juste to make gcc happy)
1 parent ec9fad4 commit 61896ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_memcached_session.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ PS_OPEN_FUNC(memcached)
116116
memcached_sess *memc_sess = PS_GET_MOD_DATA();
117117
memcached_return status;
118118
char *p, *plist_key = NULL;
119-
int plist_key_len;
119+
int plist_key_len = 0;
120120

121121
if (!strncmp((char *)save_path, "PERSISTENT=", sizeof("PERSISTENT=") - 1)) {
122122
zend_rsrc_list_entry *le = NULL;

0 commit comments

Comments
 (0)