summaryrefslogtreecommitdiffstats
path: root/src/pacman/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r--src/pacman/conf.c4
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);