[pacman-dev] [PATCH 1/4] Remove unneeded NULL check
Silvan Jegen
s.jegen at gmail.com
Tue Jan 28 11:50:42 EST 2014
Signed-off-by: Silvan Jegen <s.jegen at gmail.com>
---
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
More information about the pacman-dev
mailing list