xbps-pkgdb: fix argv in sanitize-plist target.
--HG-- extra : convert_revision : 6e475309733ddf37970ff0506b15714a6996b652
This commit is contained in:
@@ -165,7 +165,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
} else if (strcasecmp(argv[0], "sanitize-plist") == 0) {
|
} else if (strcasecmp(argv[0], "sanitize-plist") == 0) {
|
||||||
/* Sanitize a plist file (indent the file properly) */
|
/* Sanitize a plist file (indent the file properly) */
|
||||||
if (argc != 1)
|
if (argc != 2)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
dbdict = prop_dictionary_internalize_from_file(argv[1]);
|
dbdict = prop_dictionary_internalize_from_file(argv[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user