From 9eb07a81fa359f323bfa540f8fbefa4c11e2260c Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 26 Apr 2014 12:21:21 -0400 Subject: 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 --- src/pacman/conf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/pacman/conf.c') 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); -- cgit v1.2.3-70-g09d2