mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-13 19:30:37 +00:00
config: get rid of a useless asignment
This commit is contained in:
parent
86c0261460
commit
43e5dda702
@ -268,12 +268,10 @@ static int config_iterator_next(
|
|||||||
diskfile_backend *b = (diskfile_backend *) it->parent.backend;
|
diskfile_backend *b = (diskfile_backend *) it->parent.backend;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
cvar_t * var;
|
cvar_t * var;
|
||||||
const char* key;
|
|
||||||
|
|
||||||
if (it->next_var == NULL) {
|
if (it->next_var == NULL) {
|
||||||
err = git_strmap_next(&key, (void**) &var, &(it->iter), b->values);
|
err = git_strmap_next((void**) &var, &(it->iter), b->values);
|
||||||
} else {
|
} else {
|
||||||
key = it->next_var->entry->name;
|
|
||||||
var = it->next_var;
|
var = it->next_var;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
#include "strmap.h"
|
#include "strmap.h"
|
||||||
|
|
||||||
int git_strmap_next(
|
int git_strmap_next(
|
||||||
const char **key,
|
|
||||||
void **data,
|
void **data,
|
||||||
git_strmap_iter* iter,
|
git_strmap_iter* iter,
|
||||||
git_strmap *map)
|
git_strmap *map)
|
||||||
@ -22,7 +21,6 @@ int git_strmap_next(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
*key = git_strmap_key(map, *iter);
|
|
||||||
*data = git_strmap_value_at(map, *iter);
|
*data = git_strmap_value_at(map, *iter);
|
||||||
|
|
||||||
++(*iter);
|
++(*iter);
|
||||||
|
@ -68,7 +68,6 @@ typedef khiter_t git_strmap_iter;
|
|||||||
#define git_strmap_end kh_end
|
#define git_strmap_end kh_end
|
||||||
|
|
||||||
int git_strmap_next(
|
int git_strmap_next(
|
||||||
const char **key,
|
|
||||||
void **data,
|
void **data,
|
||||||
git_strmap_iter* iter,
|
git_strmap_iter* iter,
|
||||||
git_strmap *map);
|
git_strmap *map);
|
||||||
|
Loading…
Reference in New Issue
Block a user