1
0
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:
Silvan Jegen 2014-01-28 17:50:42 +01:00 committed by Allan McRae
parent aabb7c3cdd
commit d895cae16c

View File

@ -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: