xbps_get_pkg_name(): remove wrong comment.
--HG-- extra : convert_revision : 5a51c7fc6559347195e86d051aae72caafaf489d
This commit is contained in:
parent
bd6d7b5502
commit
11f0a2d4a6
1 changed files with 1 additions and 2 deletions
|
@ -56,12 +56,11 @@ xbps_get_pkg_name(const char *pkg)
|
|||
|
||||
assert(pkg != NULL);
|
||||
|
||||
/* Get the required version */
|
||||
/* Get package name */
|
||||
tmp = strrchr(pkg, '-');
|
||||
assert(tmp != NULL);
|
||||
len = strlen(pkg) - strlen(tmp) + 1;
|
||||
|
||||
/* Get package name */
|
||||
pkgname = malloc(len);
|
||||
memcpy(pkgname, pkg, len - 1);
|
||||
pkgname[len - 1] = '\0';
|
||||
|
|
Loading…
Reference in a new issue