diff options
Diffstat (limited to 'src/repodata.c')
-rw-r--r-- | src/repodata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repodata.c b/src/repodata.c index d3b00f6..802730d 100644 --- a/src/repodata.c +++ b/src/repodata.c @@ -2182,7 +2182,7 @@ repodata_set_location(Repodata *data, Id solvid, int medianr, const char *dir, c repodata_set_str(data, solvid, SOLVABLE_MEDIADIR, dir); else { - char *dir2 = strdup(dir); + char *dir2 = solv_strdup(dir); dir2[l] = 0; repodata_set_str(data, solvid, SOLVABLE_MEDIADIR, dir2); free(dir2); |