summaryrefslogtreecommitdiffstats
path: root/libarchive/archive_entry_stat.c
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2012-02-08 12:53:14 +0000
committermm <mm@FreeBSD.org>2012-02-08 12:53:14 +0000
commit2f6e434fe4c652da1969314fa57ae21936cec85d (patch)
tree28a8e9d81eb7ed48e286dfc384e2e0ffccc238b5 /libarchive/archive_entry_stat.c
parent5ae64fdbb237eec1fbe1362330190b974b1a1061 (diff)
downloadFreeBSD-src-2f6e434fe4c652da1969314fa57ae21936cec85d.zip
FreeBSD-src-2f6e434fe4c652da1969314fa57ae21936cec85d.tar.gz
Update vendor libarchive dist to new "release" branch (post 3.0.3)
Git branch: release Git commit: 9af87742342aa4f37a22ec12c4cc1c82e00ffa2f Obtained from: https://github.com/libarchive/libarchive.git
Diffstat (limited to 'libarchive/archive_entry_stat.c')
-rw-r--r--libarchive/archive_entry_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_entry_stat.c b/libarchive/archive_entry_stat.c
index ad772c9..65ff1cf 100644
--- a/libarchive/archive_entry_stat.c
+++ b/libarchive/archive_entry_stat.c
@@ -41,7 +41,7 @@ archive_entry_stat(struct archive_entry *entry)
{
struct stat *st;
if (entry->stat == NULL) {
- entry->stat = malloc(sizeof(*st));
+ entry->stat = calloc(1, sizeof(*st));
if (entry->stat == NULL)
return (NULL);
entry->stat_valid = 0;
@@ -110,7 +110,7 @@ archive_entry_stat(struct archive_entry *entry)
/*
* TODO: On Linux, store 32 or 64 here depending on whether
* the cached stat structure is a stat32 or a stat64. This
- * will allow us to support both variants interchangably.
+ * will allow us to support both variants interchangeably.
*/
entry->stat_valid = 1;
OpenPOWER on IntegriCloud