r22535 - gnucash/branches/2.4/src/backend/xml - [r22057]Fix a warning due to the wrong declaration for the return value
John Ralls
jralls at code.gnucash.org
Tue Nov 6 19:24:11 EST 2012
Author: jralls
Date: 2012-11-06 19:24:11 -0500 (Tue, 06 Nov 2012)
New Revision: 22535
Trac: http://svn.gnucash.org/trac/changeset/22535
Modified:
gnucash/branches/2.4/src/backend/xml/io-gncxml-v2.c
Log:
[r22057]Fix a warning due to the wrong declaration for the return value
of gzopen.
The return value is off by a level of indirection, it should be a gzFile
not gzFile *.
Modified: gnucash/branches/2.4/src/backend/xml/io-gncxml-v2.c
===================================================================
--- gnucash/branches/2.4/src/backend/xml/io-gncxml-v2.c 2012-11-07 00:24:02 UTC (rev 22534)
+++ gnucash/branches/2.4/src/backend/xml/io-gncxml-v2.c 2012-11-07 00:24:11 UTC (rev 22535)
@@ -1338,7 +1338,7 @@
gchar buffer[BUFLEN];
gssize bytes;
gint gzval;
- gzFile *file;
+ gzFile file;
gint success = 1;
#ifdef G_OS_WIN32
@@ -1636,7 +1636,7 @@
{
if (is_gzipped_file(name))
{
- gzFile *file;
+ gzFile file = NULL;
char first_chunk[256];
int num_read;
More information about the gnucash-changes
mailing list