Skip to content

Commit

Permalink
rebase fix for: use SET_STRING() macro for config and repo settings
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverkurth committed Sep 11, 2024
1 parent dd4112b commit 2f20038
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/repolist.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ TDNFCreateRepo(
const char *pszId
);


static
uint32_t
TDNFRepoConfigFromCnfTree(PTDNF_REPO_DATA pRepo, struct cnfnode *cn_top)
{
uint32_t dwError = 0;
Expand Down Expand Up @@ -77,7 +78,7 @@ TDNFRepoConfigFromCnfTree(PTDNF_REPO_DATA pRepo, struct cnfnode *cn_top)
}
else if (strcmp(cn->name, TDNF_REPO_KEY_MIRRORLIST) == 0)
{
pRepo->pszMirrorList = strdup(cn->value);
SET_STRING(pRepo->pszMirrorList, cn->value);
}
else if (strcmp(cn->name, TDNF_REPO_KEY_SKIP) == 0)
{
Expand Down

0 comments on commit 2f20038

Please sign in to comment.