1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Fix double initialization of loop iterator

This commit is contained in:
Michael Vetter 2019-07-22 13:56:03 +02:00
parent 16174727f4
commit e75cc41164
2 changed files with 0 additions and 3 deletions

View File

@ -2427,7 +2427,6 @@ _cmd_index(Command *cmd) {
g_string_free(index_source, TRUE);
GString *index = g_string_new("");
i = 0;
for (i = 0; i < g_strv_length(tokens); i++) {
index = g_string_append(index, tokens[i]);
index = g_string_append(index, " ");

View File

@ -159,7 +159,6 @@ python_api_register_command(PyObject *self, PyObject *args)
Py_ssize_t args_len = PyList_Size(arguments);
char *c_arguments[args_len == 0 ? 0 : args_len+1][2];
i = 0;
for (i = 0; i < args_len; i++) {
PyObject *item = PyList_GetItem(arguments, i);
Py_ssize_t len2 = PyList_Size(item);
@ -180,7 +179,6 @@ python_api_register_command(PyObject *self, PyObject *args)
len = PyList_Size(examples);
char *c_examples[len == 0 ? 0 : len+1];
i = 0;
for (i = 0; i < len; i++) {
PyObject *item = PyList_GetItem(examples, i);
char *c_item = python_str_or_unicode_to_string(item);