aboutsummaryrefslogtreecommitdiff
path: root/lib/microtar/src/microtar.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/microtar/src/microtar.c')
-rw-r--r--lib/microtar/src/microtar.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/microtar/src/microtar.c b/lib/microtar/src/microtar.c
index 6130a49..2757116 100644
--- a/lib/microtar/src/microtar.c
+++ b/lib/microtar/src/microtar.c
@@ -332,15 +332,7 @@ int mtar_update_header(mtar_header_t *h, mtar_header_t *oh) {
int mtar_clear_header(mtar_header_t *h){
- h->mode = 0;
- h->owner = 0;
- h->size = 0;
- h->mtime = 0;
- h->type = 0;
-
- memset(h->name, 0, sizeof(h->name));
- memset(h->linkname, 0, sizeof(h->linkname));
-
+ memset(h, 0, sizeof(mtar_header_t));
return MTAR_ESUCCESS;
}