mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 08:16:54 +00:00
Fix one more -Werror=declaration-after-statement issue
This commit is contained in:
parent
16ab296ce1
commit
37cc63fc46
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue