[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] pspp/src/data gnumeric-reader.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] pspp/src/data gnumeric-reader.c |
Date: |
Sat, 03 Nov 2007 08:50:22 +0000 |
CVSROOT: /sources/pspp
Module name: pspp
Changes by: John Darrington <jmd> 07/11/03 08:50:22
Modified files:
src/data : gnumeric-reader.c
Log message:
Fix buglet reading spreadsheets with only one row.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/src/data/gnumeric-reader.c?cvsroot=pspp&r1=1.2&r2=1.3
Patches:
Index: gnumeric-reader.c
===================================================================
RCS file: /sources/pspp/pspp/src/data/gnumeric-reader.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- gnumeric-reader.c 3 Nov 2007 07:01:32 -0000 1.2
+++ gnumeric-reader.c 3 Nov 2007 08:50:22 -0000 1.3
@@ -551,7 +551,7 @@
xmlChar *attr =
xmlTextReaderGetAttribute (r->xtr, _xml ("ValueType"));
- if ( 60 != _xmlchar_to_int (attr))
+ if ( NULL == attr || 60 != _xmlchar_to_int (attr))
var_spec [idx].width = 0;
free (attr);