elmarco / rpms / libgsf

Forked from rpms/libgsf 4 years ago
Clone
fc966d5
diff -ru libgsf-1.14.19/gsf/gsf-msole-utils.c libgsf-1.14.19.foo/gsf/gsf-msole-utils.c
fc966d5
--- libgsf-1.14.19/gsf/gsf-msole-utils.c	2010-08-29 01:23:25.000000000 +0100
fc966d5
+++ libgsf-1.14.19.foo/gsf/gsf-msole-utils.c	2010-11-09 16:31:16.000000000 +0000
fc966d5
@@ -894,8 +894,13 @@
fc966d5
 		error = NULL;
fc966d5
 		if (!parse_vt_cf (res, data, data_end, &error)) {
fc966d5
 			/* suck, we can't propagate the error upwards */
fc966d5
-			g_warning ("error: %s", error->message);
fc966d5
-			g_error_free (error);
fc966d5
+			if (error) {
fc966d5
+			    g_warning ("error: %s", error->message);
fc966d5
+			    g_error_free (error);
fc966d5
+			}
fc966d5
+			else {
fc966d5
+			    g_warning ("unknown error parsing vt_cf");
fc966d5
+			}
fc966d5
 			g_free (res);
fc966d5
 			res = NULL;
fc966d5
 		}