summaryrefslogtreecommitdiff
path: root/src/poolvendor.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-12-22 12:11:47 +0100
committerMichael Schroeder <mls@suse.de>2011-12-22 12:11:47 +0100
commit87c5e01c975fee7cc5b4b5c180bbad9bfb1f3dbd (patch)
tree7bd4d4da7aecfafbb7dbb59c487dcd31fa123e06 /src/poolvendor.c
parent3e359078b72be70e97193c5b4244a499f2152741 (diff)
downloadlibsolv-87c5e01c975fee7cc5b4b5c180bbad9bfb1f3dbd.tar.gz
libsolv-87c5e01c975fee7cc5b4b5c180bbad9bfb1f3dbd.tar.bz2
libsolv-87c5e01c975fee7cc5b4b5c180bbad9bfb1f3dbd.zip
- add solv_strdup(), rename repo_freeallrepos() to pool_freeallrepos()
Diffstat (limited to 'src/poolvendor.c')
-rw-r--r--src/poolvendor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/poolvendor.c b/src/poolvendor.c
index f621f50..2bf00f8 100644
--- a/src/poolvendor.c
+++ b/src/poolvendor.c
@@ -97,7 +97,7 @@ pool_setvendorclasses(Pool *pool, const char **vendorclasses)
;
pool->vendorclasses = solv_calloc(v - vendorclasses + 2, sizeof(const char *));
for (v = vendorclasses, i = 0; v[0] || v[1]; v++, i++)
- pool->vendorclasses[i] = *v ? strdup(*v) : 0;
+ pool->vendorclasses[i] = *v ? solv_strdup(*v) : 0;
pool->vendorclasses[i++] = 0;
pool->vendorclasses[i] = 0;
queue_empty(&pool->vendormap);