mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 13:16:20 +00:00
Declare counter var inside loop
We require c99/gnu99 anyways.
This commit is contained in:
@@ -123,7 +123,7 @@ api_register_command(const char* const plugin_name, const char* command_name, in
|
||||
|
||||
help->tags[0] = NULL;
|
||||
|
||||
int i = 0;
|
||||
int i;
|
||||
for (i = 0; synopsis[i] != NULL; i++) {
|
||||
help->synopsis[i] = strdup(synopsis[i]);
|
||||
}
|
||||
|
||||
@@ -84,8 +84,7 @@ plugins_init(void)
|
||||
// load plugins
|
||||
gchar** plugins_pref = prefs_get_plugins();
|
||||
if (plugins_pref) {
|
||||
int i;
|
||||
for (i = 0; i < g_strv_length(plugins_pref); i++) {
|
||||
for (int i = 0; i < g_strv_length(plugins_pref); i++) {
|
||||
gboolean loaded = FALSE;
|
||||
gchar* filename = plugins_pref[i];
|
||||
#ifdef HAVE_PYTHON
|
||||
|
||||
Reference in New Issue
Block a user