summaryrefslogtreecommitdiff
path: root/devices/gdevxini.c
diff options
context:
space:
mode:
Diffstat (limited to 'devices/gdevxini.c')
-rw-r--r--devices/gdevxini.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/devices/gdevxini.c b/devices/gdevxini.c
index 1944c9a9d..47ec20cab 100644
--- a/devices/gdevxini.c
+++ b/devices/gdevxini.c
@@ -762,6 +762,10 @@ static int
x_initialize_device(gx_device *dev)
{
gx_device_X *xdev = (gx_device_X *) dev;
+ int code = gx_init_non_threadsafe_device(dev);
+
+ if (code < 0)
+ return code;
/* Mark the new instance as closed. */
xdev->is_open = false;