summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2014-01-28 17:50:42 +0100
committerAllan McRae <allan@archlinux.org>2014-01-30 04:40:24 +0100
commitd895cae16cc97e5f1e3f95eb748a99161678f8ee (patch)
tree328639fb100abd8dbf07fa63582b0490e994a727 /src
parentaabb7c3cddf5e97d1b1ebb3548664f1af85c1392 (diff)
downloadpacman-d895cae16cc97e5f1e3f95eb748a99161678f8ee.tar.gz
pacman-d895cae16cc97e5f1e3f95eb748a99161678f8ee.tar.xz
Remove unneeded NULL check
Signed-off-by: Silvan Jegen <s.jegen@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c4
1 files changed, 1 insertions, 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: