@@ -850,13 +850,12 @@ int redis_cmd_append_sstr_long(smart_str *str, long append) {
850
850
*/
851
851
int redis_cmd_append_sstr_dbl (smart_str * str , double value ) {
852
852
char * dbl_str ;
853
- int dbl_len ;
854
- int retval ;
853
+ int dbl_len , retval ;
855
854
856
855
/* Convert to double */
857
856
REDIS_DOUBLE_TO_STRING (dbl_str , dbl_len , value );
858
857
859
- /* Append the string */
858
+ // Append the string
860
859
retval = redis_cmd_append_sstr (str , dbl_str , dbl_len );
861
860
862
861
/* Free our double string */
@@ -870,11 +869,11 @@ int redis_cmd_append_sstr_dbl(smart_str *str, double value) {
870
869
* Append an integer command to a Redis command
871
870
*/
872
871
int redis_cmd_append_int (char * * cmd , int cmd_len , int append ) {
873
- char int_buf [32 ];
874
- int int_len ;
872
+ char int_buf [32 ];
873
+ int int_len ;
875
874
876
- /* Conver to an int, capture length */
877
- int_len = snprintf (int_buf , sizeof (int_buf ), "%d" , append );
875
+ // Conver to an int, capture length
876
+ int_len = snprintf (int_buf , sizeof (int_buf ), "%d" , append );
878
877
879
878
/* Return the new length */
880
879
return redis_cmd_append_str (cmd , cmd_len , int_buf , int_len );
@@ -1051,6 +1050,8 @@ PHP_REDIS_API void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSo
1051
1050
1052
1051
PHPAPI zval * redis_parse_client_list_response (char * response ) {
1053
1052
zval * z_result , * z_sub_result ;
1053
+ char * p , * lpos , * kpos = NULL , * vpos = NULL , * p2 , * key , * value ;
1054
+ int klen = 0 , done = 0 , is_numeric ;
1054
1055
1055
1056
// Allocate memory for our response
1056
1057
MAKE_STD_ZVAL (z_result );
@@ -1061,8 +1062,8 @@ PHPAPI zval* redis_parse_client_list_response(char *response) {
1061
1062
array_init (z_sub_result );
1062
1063
1063
1064
// Pointers for parsing
1064
- char * p = response , * lpos = response , * p2 , * key ;
1065
- char * kpos = NULL , * vpos = NULL , * value ;
1065
+ p = response ;
1066
+ lpos = response ;
1066
1067
1067
1068
/* While we've got more to parse */
1068
1069
while (!done ) {
0 commit comments