From: John Darrington Date: Sat, 3 Nov 2007 08:50:22 +0000 (+0000) Subject: Fix buglet reading spreadsheets with only one row. X-Git-Tag: v0.6.0~208 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5a1e8c05118edd5d9fd0dfd1a6f421632779292;p=pspp-builds.git Fix buglet reading spreadsheets with only one row. --- diff --git a/src/data/gnumeric-reader.c b/src/data/gnumeric-reader.c index f402ef11..f4292a06 100644 --- a/src/data/gnumeric-reader.c +++ b/src/data/gnumeric-reader.c @@ -551,7 +551,7 @@ gnumeric_open_reader (struct gnumeric_read_info *gri, struct dictionary **dict) 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);