From d895cae16cc97e5f1e3f95eb748a99161678f8ee Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Tue, 28 Jan 2014 17:50:42 +0100 Subject: Remove unneeded NULL check Signed-off-by: Silvan Jegen Signed-off-by: Allan McRae --- src/pacman/pacman.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 8c76987e..ef909783 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -414,9 +414,7 @@ static int parsearg_global(int opt) enable_colors(config->color); break; case OP_CONFIG: - if(config->configfile) { - free(config->configfile); - } + free(config->configfile); config->configfile = strndup(optarg, PATH_MAX); break; case OP_DEBUG: -- cgit v1.2.3-70-g09d2