Mercurial > embed
comparison libzip/lib/zip_new.c @ 56:056ee6b5913e
libzip: update to 1.3.0, closes #654
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 10 Oct 2017 20:43:12 +0200 |
parents | 2306f4b04790 |
children |
comparison
equal
deleted
inserted
replaced
55:a7a33cbf3e52 | 56:056ee6b5913e |
---|---|
1 /* | 1 /* |
2 zip_new.c -- create and init struct zip | 2 zip_new.c -- create and init struct zip |
3 Copyright (C) 1999-2015 Dieter Baron and Thomas Klausner | 3 Copyright (C) 1999-2016 Dieter Baron and Thomas Klausner |
4 | 4 |
5 This file is part of libzip, a library to manipulate ZIP archives. | 5 This file is part of libzip, a library to manipulate ZIP archives. |
6 The authors can be contacted at <libzip@nih.at> | 6 The authors can be contacted at <libzip@nih.at> |
7 | 7 |
8 Redistribution and use in source and binary forms, with or without | 8 Redistribution and use in source and binary forms, with or without |
50 if (!za) { | 50 if (!za) { |
51 zip_error_set(error, ZIP_ER_MEMORY, 0); | 51 zip_error_set(error, ZIP_ER_MEMORY, 0); |
52 return NULL; | 52 return NULL; |
53 } | 53 } |
54 | 54 |
55 if ((za->names = _zip_hash_new(ZIP_HASH_TABLE_SIZE, error)) == NULL) { | 55 if ((za->names = _zip_hash_new(error)) == NULL) { |
56 free(za); | 56 free(za); |
57 return NULL; | 57 return NULL; |
58 } | 58 } |
59 | 59 |
60 za->src = NULL; | 60 za->src = NULL; |
66 za->comment_changed = 0; | 66 za->comment_changed = 0; |
67 za->nentry = za->nentry_alloc = 0; | 67 za->nentry = za->nentry_alloc = 0; |
68 za->entry = NULL; | 68 za->entry = NULL; |
69 za->nopen_source = za->nopen_source_alloc = 0; | 69 za->nopen_source = za->nopen_source_alloc = 0; |
70 za->open_source = NULL; | 70 za->open_source = NULL; |
71 za->tempdir = NULL; | 71 za->progress = NULL; |
72 | 72 |
73 return za; | 73 return za; |
74 } | 74 } |