commit a0b3389c1fd0410d5840649d7646db956a3f7815 from: Stefan Sperling date: Mon Nov 05 17:15:49 2018 UTC no need to zero new id cache elements during allocation commit - 294f39b084fde876f9974c967dd7c002a4e8b07b commit + a0b3389c1fd0410d5840649d7646db956a3f7815 blob - 340cb9c6d027478c290e3e6453ed01ae32f4048d blob + 763294310f44316f6e4616536eae3bc35e3f70d0 --- lib/object_idcache.c +++ lib/object_idcache.c @@ -99,7 +99,7 @@ got_object_idcache_add(struct got_object_idcache *cach if (cache->totelem >= cache->maxelem) return got_error(GOT_ERR_NO_SPACE); - entry = calloc(1, sizeof(*entry)); + entry = malloc(sizeof(*entry)); if (entry == NULL) return got_error_from_errno();