From 67d998c0b589d67ef60440a91808e4cb9e1a8740 Mon Sep 17 00:00:00 2001 From: Jason Gerecke Date: Fri, 28 Jun 2019 14:43:57 -0700 Subject: Prevent librsvg from bailing at the sight of uninitialized data Leaving 'error' uninitalized causes the librsvg to believe that Something Bad (TM) has already happened and prevents it from working. (lt-show-svg-image:18442): librsvg-CRITICAL **: 14:34:08.414: rsvg_handle_write: assertion 'error == NULL || *error == NULL' failed Fixes: https://github.com/linuxwacom/libwacom/issues/103 Signed-off-by: Jason Gerecke --- tools/show-svg-image.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/show-svg-image.c b/tools/show-svg-image.c index 0f297f1..02d5c71 100644 --- a/tools/show-svg-image.c +++ b/tools/show-svg-image.c @@ -209,6 +209,8 @@ update_tablet (Tablet *tablet) gchar *file_data, *escaped_file_data, *data; gsize file_len; + error = NULL; + if (tablet->handle) g_object_unref (tablet->handle); -- cgit v1.2.1