Fix incorrect comment

pull/178/head
TingPing 2018-03-08 00:12:54 -05:00 committed by GitHub
parent 60c05f5621
commit 6864974d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -375,8 +375,6 @@ pkgconf_pkg_new_from_file(pkgconf_client_t *client, const char *filename, FILE *
/* Some pc files will use absolute paths for all of their directories /* Some pc files will use absolute paths for all of their directories
* which is broken when redefining the prefix. We try to outsmart the * which is broken when redefining the prefix. We try to outsmart the
* file and rewrite any directory that starts with the same prefix. * file and rewrite any directory that starts with the same prefix.
* Note that `pkg-config` just blindly sets all of the directories
* so this is a behavioral difference but arguablly more correct.
*/ */
if (client->flags & PKGCONF_PKG_PKGF_REDEFINE_PREFIX && original_prefix[0] if (client->flags & PKGCONF_PKG_PKGF_REDEFINE_PREFIX && original_prefix[0]
&& !strncmp(value, original_prefix, strlen(original_prefix))) && !strncmp(value, original_prefix, strlen(original_prefix)))