summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pacman/pacman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 71413bdd..d285a055 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -385,7 +385,7 @@ static int parsearg_global(int opt)
switch(opt) {
case OP_ARCH:
check_optarg();
- config_set_arch(strdup(optarg));
+ config_set_arch(optarg);
break;
case OP_ASK:
check_optarg();