From 37cc63fc466b42b963f7dc81475d5f0bd0c2e0a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Borgstr=C3=B6m?= Date: Sun, 30 Mar 2014 22:35:13 +0200 Subject: [PATCH] Fix one more -Werror=declaration-after-statement issue --- attic/_hashindex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attic/_hashindex.c b/attic/_hashindex.c index 0e04f6bb7..6e932c056 100644 --- a/attic/_hashindex.c +++ b/attic/_hashindex.c @@ -115,15 +115,15 @@ hashindex_resize(HashIndex *index, int capacity) { char *new_path = malloc(strlen(index->path) + 5); int ret = 0; + HashIndex *new; + void *key = NULL; strcpy(new_path, index->path); strcat(new_path, ".tmp"); - HashIndex *new; if(!(new = hashindex_create(new_path, capacity, index->key_size, index->value_size))) { free(new_path); return 0; } - void *key = NULL; while((key = hashindex_next_key(index, key))) { hashindex_set(new, key, hashindex_get(index, key)); }