10000 Fix: library.c:743:78: warning: unused variable 'p2' (PLEASE CHECK) · DQPHP/phpredis@7634db4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7634db4

Browse files
committed
Fix: library.c:743:78: warning: unused variable 'p2' (PLEASE CHECK)
1 parent 8805b13 commit 7634db4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,8 @@ PHPAPI void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *red
774774

775775
// Treat numbers as numbers, strings as strings
776776
is_numeric = 1;
777-
for(p2 = value; *p; ++p) {
778-
if(*p < '0' || *p > '9') {
777+
for(p2 = value; *p2; ++p2) {
778+
if(*p2 < '0' || *p2 > '9') {
779779
is_numeric = 0;
780780
break;
781781
}

0 commit comments

Comments
 (0)
0