[mutter/gbsneto/dmabuf-screencast: 8/9] screen-cast-stream-src: Initialize data



commit 79ef12a5d1c54c652c5771eeb24d3cb577eb0ce6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 24 14:12:36 2020 -0300

    screen-cast-stream-src: Initialize data
    
    Otherwise the compiler complains about potentially unitialized
    variables, even though we never use it when it's unitialized.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/1086

 src/backends/meta-screen-cast-stream-src.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c
index 665c55445..35a677aa6 100644
--- a/src/backends/meta-screen-cast-stream-src.c
+++ b/src/backends/meta-screen-cast-stream-src.c
@@ -455,7 +455,7 @@ meta_screen_cast_stream_src_maybe_record_frame (MetaScreenCastStreamSrc *src)
   struct pw_buffer *buffer;
   struct spa_buffer *spa_buffer;
   uint8_t *map = NULL;
-  uint8_t *data;
+  uint8_t *data = NULL;
   uint64_t now_us;
 
   now_us = g_get_monotonic_time ();


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