Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fb2935

Browse files
committed
Replace strtok_r with php_strtok_r #2
1 parent aaa4c91 commit 1fb2935

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

library.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,12 +1223,12 @@ redis_parse_client_list_response(char *response, zval *z_ret)
12231223
} else {
12241224
add_next_index_string(&z_sub, p2);
12251225
}
1226-
} while ((p2 = strtok_r(NULL, " ", &s2)) != NULL);
1226+
} while ((p2 = php_strtok_r(NULL, " ", &s2)) != NULL);
12271227
} else {
12281228
ZVAL_FALSE(&z_sub);
12291229
}
12301230
add_next_index_zval(z_ret, &z_sub);
1231-
} while ((p1 = strtok_r(NULL, _NL, &s1)) != NULL);
1231+
} while ((p1 = php_strtok_r(NULL, _NL, &s1)) != NULL);
12321232
} else {
12331233
ZVAL_FALSE(z_ret);
12341234
}

0 commit comments

Comments
 (0)