xbps-rindex: use correct argv index.

This commit is contained in:
Juan RP committed 2014-11-06 11:33:04 +01:00
1 parent 759f7e7fba
commit 84be0dcd8b
1 file changed
+1 -1
+1 -1
View File
@@ -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);