xbps-rindex: use correct argv index.
This commit is contained in:
1 parent
759f7e7fba
commit
84be0dcd8b
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user