summaryrefslogtreecommitdiffstats
path: root/src/cli/cli.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-03-29 11:12:16 -0400
committerJiri Moskovcak <jmoskovc@redhat.com>2011-03-29 20:28:24 +0200
commitd6783b83ecce7a8b63cad69216f178d02b774546 (patch)
tree86c613c576d1a52b4522842c7816cc2b64f110a1 /src/cli/cli.c
parent5cc34d7d4e636c083b2722645778f78bf30c71cb (diff)
downloadabrt-d6783b83ecce7a8b63cad69216f178d02b774546.zip
abrt-d6783b83ecce7a8b63cad69216f178d02b774546.tar.gz
abrt-d6783b83ecce7a8b63cad69216f178d02b774546.tar.xz
all: don't declare variables inside for loops
Diffstat (limited to 'src/cli/cli.c')
-rw-r--r--src/cli/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli/cli.c b/src/cli/cli.c
index 0c895a7..0af9ef2 100644
--- a/src/cli/cli.c
+++ b/src/cli/cli.c
@@ -116,7 +116,8 @@ static void print_crash(crash_data_t *crash_data)
*/
static void print_crash_list(vector_of_crash_data_t *crash_list, bool include_reported)
{
- for (unsigned i = 0; i < crash_list->len; ++i)
+ unsigned i;
+ for (i = 0; i < crash_list->len; ++i)
{
crash_data_t *crash = get_crash_data(crash_list, i);
if (!include_reported)