Permalink
Browse files

Fix loop declaration for chp

  • Loading branch information...
1 parent 319dd87 commit f205aaed7ef3b169a753cfbfecd9f8085a746c84 @ferenyx ferenyx committed Jan 30, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/proto/nc_redis.c
View
@@ -1155,7 +1155,8 @@ redis_parse_req(struct msg *r)
if (p - r->token < 1)
goto error;
uint32_t nkeys = 0;
- for (uint8_t *chp = r->token; chp < p; chp++) {
+ uint8_t *chp = r->token;
+ for (; chp < p; chp++) {
if (isdigit(*chp))
nkeys = nkeys * 10 + (uint32_t)(*chp - '0');
else

0 comments on commit f205aae

Please sign in to comment.