Skip to content

Commit

Permalink
fix loop
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jul 9, 2024
1 parent 503b938 commit 1d22f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/s3_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ PyObject *aws_py_s3_client_new(PyObject *self, PyObject *args) {
if (list_size < 0) {
goto cleanup;
}
num_network_interface_names = (size_t)list_size;
num_network_interface_names = (size_t) list_size;
network_interface_names =
aws_mem_calloc(allocator, num_network_interface_names, sizeof(struct aws_byte_cursor));
for (Py_ssize_t i = 0; i < num_network_interface_names; ++i) {
for (size_t i = 0; i < num_network_interface_names; ++i) {
PyObject *str_obj = PySequence_GetItem(network_interface_names_py, i); /* New reference */
if (!str_obj) {
PyErr_SetString(PyExc_TypeError, "Expected network_interface_names elements to be non-null.");
Expand Down

0 comments on commit 1d22f3d

Please sign in to comment.