diff --git a/bin/xbps-pkgdb.c b/bin/xbps-pkgdb.c index 19b73897eeb..4fe1c5508e7 100644 --- a/bin/xbps-pkgdb.c +++ b/bin/xbps-pkgdb.c @@ -165,7 +165,7 @@ main(int argc, char **argv) } else if (strcasecmp(argv[0], "sanitize-plist") == 0) { /* Sanitize a plist file (indent the file properly) */ - if (argc != 1) + if (argc != 2) usage(); dbdict = prop_dictionary_internalize_from_file(argv[1]);