diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2014-04-26 12:21:21 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-21 14:27:46 +1000 |
commit | 9eb07a81fa359f323bfa540f8fbefa4c11e2260c (patch) | |
tree | af1d00b8f45c7f56b5485d21775d5ebf5d5a86e8 /src/pacman/conf.c | |
parent | 7ed0d60a0db26e8ac2224196b3a629676a0b9c21 (diff) |
ini.c: remove final callback call
Storing repo information removes the need for the final callback. This
allows the call signature to be re-purposed for indicating read errors.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r-- | src/pacman/conf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 54f31461..fbf7bb3c 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -902,9 +902,7 @@ static int _parse_directive(const char *file, int linenum, const char *name, if(!key && !value) { section->name = name; pm_printf(ALPM_LOG_DEBUG, "config: new section '%s'\n", name); - if(!name) { - /* end of file, do nothing */ - } else if(strcmp(name, "options") == 0) { + if(strcmp(name, "options") == 0) { section->repo = NULL; } else { section->repo = calloc(sizeof(config_repo_t), 1); |