Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-04-26 12:34:27 -0400
committerAllan McRae <allan@archlinux.org>2015-01-21 14:27:47 +1000
commitea96b567221e1426c6f6ab2b31891d1301fd00f4 (patch)
treeeb7542cdc2732299f080082f927d1b0064f1289e
parente7d8e2b5acfbe9169c809e1e8fd31d22b7c365c5 (diff)
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 <andrew.gregory.8@gmail.com>
-rw-r--r--src/pacman/ini.c6
1 files changed, 0 insertions, 6 deletions
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;
}