Skip to content

Commit bad9073

Browse files
committed
redis.c:4300:33: warning: 'arr_weights_hash' may be used uninitialized in this function
1 parent bdc5336 commit bad9073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4197,7 +4197,7 @@ PHP_METHOD(Redis, zIncrBy)
41974197
PHPAPI void generic_z_command(INTERNAL_FUNCTION_PARAMETERS, char *command, int command_len) {
41984198

41994199
zval *object, *keys_array, *weights_array = NULL, **data;
4200-
HashTable *arr_weights_hash, *arr_keys_hash;
4200+
HashTable *arr_weights_hash = NULL, *arr_keys_hash;
42014201
int key_output_len, array_weights_count, array_keys_count, operation_len = 0;
42024202
char *key_output, *operation;
42034203
RedisSock *redis_sock;

0 commit comments

Comments
 (0)