commit 0845193829e4f95dfff0f61aea907b88537b5a66 from: Stefan Sperling date: Mon Nov 05 22:23:23 2018 UTC no need to zero path during allocation in get_packfile_path() commit - 14118581d8473c14829cb01578400a4dd4c3babf commit + 0845193829e4f95dfff0f61aea907b88537b5a66 blob - 166807be00c06035e060b331860e6024814f7fc9 blob + 2100b9659fd0c6f802370276d8c1dbd456b205ae --- lib/object.c +++ lib/object.c @@ -153,7 +153,7 @@ get_packfile_path(char **path_packfile, struct got_pac if (size < GOT_PACKFILE_NAMELEN + 1) return got_error(GOT_ERR_BAD_PATH); - *path_packfile = calloc(size, sizeof(**path_packfile)); + *path_packfile = malloc(size); if (*path_packfile == NULL) return got_error_from_errno();