index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2019-12-24 10:28:11 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2020-01-07 11:40:32 +1000 |
commit | 9883015be2b2010ad541fd02b6856bfdb28fb35d (patch) | |
tree | cea21e7bc4eab89a47356f60c4b924ae3043bb42 /src | |
parent | ffb69c700abd6eb3b86e79e09b135029ff9104b4 (diff) |
-rw-r--r-- | src/pacman/conf.c | 3 |
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 3b475151..fe6d6971 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -1117,8 +1117,7 @@ int setdefaults(config_t *c) int parseconfigfile(const char *file) { - struct section_t section; - memset(§ion, 0, sizeof(struct section_t)); + struct section_t section = {0}; pm_printf(ALPM_LOG_DEBUG, "config: attempting to read file %s\n", file); return parse_ini(file, _parse_directive, §ion); } |