[gtk+] Avoid a compiler warning



commit d779d0cb3266bb826aef4f89464a239e55a12159
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 1 11:51:51 2017 -0400

    Avoid a compiler warning

 tests/rendernode.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/rendernode.c b/tests/rendernode.c
index f35f74c..7a38ab6 100644
--- a/tests/rendernode.c
+++ b/tests/rendernode.c
@@ -115,7 +115,7 @@ main(int argc, char **argv)
     {
       GskRenderer *renderer;
       GdkWindow *window;
-      GskTexture *texture;
+      GskTexture *texture = NULL;
 
       window = gdk_window_new_toplevel (gdk_display_get_default(), 0, 10 , 10);
       renderer = gsk_renderer_new_for_window (window);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]