]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Use internal calloc function to allocate memory
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jan 2018 16:40:31 +0000 (17:40 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jan 2018 16:40:31 +0000 (17:40 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/repo.c

index 010c5a3d5f3369ff88a444f84797f7371fd405b5..bb1a70445df06bd489fb0e8e67e392ea8be046b7 100644 (file)
@@ -90,7 +90,7 @@ PAKFIRE_EXPORT PakfireRepo pakfire_repo_create(Pakfire pakfire, const char* name
 
                // Allocate repository appdata
                repo->appdata = repo->repo->appdata = \
-                       calloc(1, sizeof(*repo->appdata));
+                       pakfire_calloc(1, sizeof(*repo->appdata));
 
                repo->appdata->repodata = repo_add_repodata(repo->repo,
                        REPO_EXTEND_SOLVABLES|REPO_LOCALPOOL|REPO_NO_INTERNALIZE|REPO_NO_LOCATION);