Skip to content

Commit 7880104

Browse files
whoisjyinggeh
andauthored
Update src/http_server.cc
Co-authored-by: Yingge He <157551214+yinggeh@users.noreply.github.com>
1 parent a9923b5 commit 7880104

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/http_server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ ReadDataFromJsonHelper(
607607
size_t len = 0;
608608
RETURN_IF_ERR(tensor_data.AsString(&cstr, &len));
609609
// Quick sanity check to ensure we don't write beyond `expected_cnt`.
610-
int32_t value = *counter + len + sizeof(uint32_t);
610+
int32_t actual_cnt = *counter + len + sizeof(uint32_t);
611611
if (len < 0 || value < 0) {
612612
return TRITONSERVER_ErrorNew(
613613
TRITONSERVER_ERROR_INTERNAL,

0 commit comments

Comments
 (0)