xbps-rindex: use correct argv index.
This commit is contained in:
parent
759f7e7fba
commit
84be0dcd8b
@ -53,7 +53,7 @@ index_add(struct xbps_handle *xhp, int args, int argmax, char **argv, bool force
|
||||
/*
|
||||
* Read the repository data or create index dictionaries otherwise.
|
||||
*/
|
||||
if ((tmprepodir = strdup(argv[0])) == NULL)
|
||||
if ((tmprepodir = strdup(argv[args])) == NULL)
|
||||
return ENOMEM;
|
||||
|
||||
repodir = dirname(tmprepodir);
|
||||
|
Loading…
Reference in New Issue
Block a user