From ea96b567221e1426c6f6ab2b31891d1301fd00f4 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 26 Apr 2014 12:34:27 -0400 Subject: ini.c: remove useless key check key points to a statically allocated string so it can't be NULL and empty keys are rejected by the callback. Signed-off-by: Andrew Gregory --- src/pacman/ini.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src') diff --git a/src/pacman/ini.c b/src/pacman/ini.c index 7291e971..affab54a 100644 --- a/src/pacman/ini.c +++ b/src/pacman/ini.c @@ -103,12 +103,6 @@ int parse_ini(const char *file, ini_parser_fn cb, void *data) strtrim(key); strtrim(value); - if(key == NULL) { - pm_printf(ALPM_LOG_ERROR, _("config file %s, line %d: syntax error in config file- missing key.\n"), - file, linenum); - ret = 1; - goto cleanup; - } if((ret = cb(file, linenum, section_name, key, value, data)) != 0) { goto cleanup; } -- cgit v1.2.3-70-g09d2