summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/pacman.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 744b1899..e601a14d 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -495,6 +495,7 @@ static int parseargs(int argc, char *argv[])
setarch(optarg);
break;
case OP_PRINTFORMAT:
+ check_optarg();
config->print_format = strdup(optarg);
break;
case 'Q': config->op = (config->op != PM_OP_MAIN ? 0 : PM_OP_QUERY); break;