ods-reader: Don't return NULL from a boolean function.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 27 May 2023 04:51:59 +0000 (21:51 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 27 May 2023 04:51:59 +0000 (21:51 -0700)
src/data/ods-reader.c

index f05d68272969e659e4cd77c8a16b2dbc2a2114ca..2839117363b5322db6dd539f0896be93e838f933 100644 (file)
@@ -1123,7 +1123,7 @@ init_reader (struct ods_reader *r, bool report_errors,
       if (content == NULL)
         {
           free (error);
-          return NULL;
+          return false;
         }
 
       xmlTextReaderPtr xtr = xmlReaderForIO (xml_reader_for_zip_member, NULL, content, NULL, NULL,