Zip Reader: initialise error string earlier.
[pspp] / src / libpspp / zip-reader.h
index 966bd5990f25adf1cc37c0879fad05aba3038b4e..81c1a766dd60ed8ecca85f5375bf305e5e18f1f7 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2011 Free Software Foundation, Inc.
+   Copyright (C) 2011, 2013 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -26,9 +26,7 @@ struct string;
 enum compression
   {
     COMPRESSION_STORED = 0,
-#if HAVE_ZLIB_H
     COMPRESSION_INFLATE,
-#endif
     n_COMPRESSION
   };
 
@@ -45,7 +43,8 @@ struct zip_member
 
   size_t bytes_unread;       /* Number of bytes left in the member available for reading */
   int ref_cnt;
-  struct string *errs;
+  struct string *errmsgs;    /* A string to hold error messages.
+                               This string is NOT owned by this object. */
   void *aux;
 };