summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJason Gerecke <jason.gerecke@wacom.com>2019-06-28 14:43:57 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2019-07-05 07:49:47 +1000
commit67d998c0b589d67ef60440a91808e4cb9e1a8740 (patch)
tree41452e46e8fa885a6afbf28dd3df4ef921fa090f /tools
parent1d205857c47d2c84aac1f2b08afaa661ee856263 (diff)
downloadlibwacom-67d998c0b589d67ef60440a91808e4cb9e1a8740.tar.gz
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 <jason.gerecke@wacom.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/show-svg-image.c2
1 files changed, 2 insertions, 0 deletions
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);