diff options
Diffstat (limited to 'ext/zip/lib/zip_new.c')
-rw-r--r-- | ext/zip/lib/zip_new.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ext/zip/lib/zip_new.c b/ext/zip/lib/zip_new.c index 378513b6c..3e8ccee64 100644 --- a/ext/zip/lib/zip_new.c +++ b/ext/zip/lib/zip_new.c @@ -1,11 +1,9 @@ /* - $NiH: zip_new.c,v 1.12 2006/04/23 00:40:47 wiz Exp $ - zip_new.c -- create and init struct zip - Copyright (C) 1999, 2004, 2005 Dieter Baron and Thomas Klausner + Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. - The authors can be contacted at <nih@giga.or.at> + The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions @@ -36,7 +34,7 @@ #include <stdlib.h> -#include "zip.h" + #include "zipint.h" @@ -45,7 +43,7 @@ creates a new zipfile struct, and sets the contents to zero; returns the new struct. */ -PHPZIPAPI struct zip * +struct zip * _zip_new(struct zip_error *error) { struct zip *za; @@ -66,6 +64,7 @@ _zip_new(struct zip_error *error) za->entry = NULL; za->nfile = za->nfile_alloc = 0; za->file = NULL; + za->flags = za->ch_flags = 0; return za; } |