Skip to content

Commit 573c978

Browse files
committed
Fix php_memcached.c:781:45: warning: 'orig_cas_flag' may be used uninitialized in this function (again... just to make gcc happy)
1 parent ccea7be commit 573c978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php_memcached.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ static void php_memc_getMulti_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool by_ke
702702
uint64_t cas = 0;
703703
zval *cas_tokens = NULL;
704704
zval *udf_flags = NULL;
705-
uint64_t orig_cas_flag;
705+
uint64_t orig_cas_flag = 0;
706706
zval *value;
707707
long get_flags = 0;
708708
int i = 0;
@@ -907,7 +907,7 @@ static void php_memc_getDelayed_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool by_
907907
zval **entry = NULL;
908908
const char **mkeys = NULL;
909909
size_t *mkeys_len = NULL;
910-
uint64_t orig_cas_flag;
910+
uint64_t orig_cas_flag = 0;
911911
zend_fcall_info fci = empty_fcall_info;
912912
zend_fcall_info_cache fcc = empty_fcall_info_cache;
913913
int i = 0;

0 commit comments

Comments
 (0)