Signed-off-by: Silvan Jegen <[email protected]>
---
 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 6bf94e9..7329f0f 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -421,9 +421,7 @@ static int parsearg_global(int opt)
                        break;
                case OP_CONFIG:
                        check_optarg();
-                       if(config->configfile) {
-                               free(config->configfile);
-                       }
+                       free(config->configfile);
                        config->configfile = strndup(optarg, PATH_MAX);
                        break;
                case OP_DEBUG:
-- 
1.8.5.3


Reply via email to