Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
Signed-off-by: leleliu008 <[email protected]>
  • Loading branch information
leleliu008 committed Nov 15, 2023
1 parent b6f5735 commit b97c4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/install.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ static int export_environment_variables_for_build_tools(const char * packageInst
size_t newPKG_CONFIG_PATHLength = pkgconfigDIRLength + strlen(PKG_CONFIG_PATH) + 2U;
char newPKG_CONFIG_PATH[newPKG_CONFIG_PATHLength];

ret = snprintf(newPKG_CONFIG_PATH, newPKG_CONFIG_PATHLength, "%s:%s", pkgconfigDIR, PKG_CONFIG_PATH);
ret = snprintf(newPKG_CONFIG_PATH, newPKG_CONFIG_PATHLength, "%s:%s", PKG_CONFIG_PATH, pkgconfigDIR);

if (ret < 0) {
perror(NULL);
Expand Down

0 comments on commit b97c4c5

Please sign in to comment.