From 7fa3f41df294e3b90f0eeee8a5ba067283d1c815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 28 Oct 2016 13:57:57 +0800 Subject: [PATCH] MetaBackendNative: Initialize GError pointer Initialize the GError pointer used when creating the renderer. If an error occurs, the error is expected to be NULL, otherwise it'll misinterpreted as already set. https://bugzilla.gnome.org/show_bug.cgi?id=773629 --- src/backends/native/meta-backend-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c index 09b235b43..d64019e1f 100644 --- a/src/backends/native/meta-backend-native.c +++ b/src/backends/native/meta-backend-native.c @@ -290,7 +290,7 @@ meta_backend_native_create_renderer (MetaBackend *backend) MetaBackendNativePrivate *priv = meta_backend_native_get_instance_private (native); int kms_fd; - GError *error; + GError *error = NULL; MetaRendererNative *renderer_native; kms_fd = meta_launcher_get_kms_fd (priv->launcher);