mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-09 13:07:58 -05:00
Remove unneeded NULL check
Signed-off-by: Silvan Jegen <s.jegen@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
aabb7c3cdd
commit
d895cae16c
@ -414,9 +414,7 @@ static int parsearg_global(int opt)
|
||||
enable_colors(config->color);
|
||||
break;
|
||||
case OP_CONFIG:
|
||||
if(config->configfile) {
|
||||
free(config->configfile);
|
||||
}
|
||||
config->configfile = strndup(optarg, PATH_MAX);
|
||||
break;
|
||||
case OP_DEBUG:
|
||||
|
Loading…
Reference in New Issue
Block a user