[mutter/gbsneto/dmabuf-screencast] screen-cast-stream-src: Initialize data
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/dmabuf-screencast] screen-cast-stream-src: Initialize data
- Date: Mon, 24 Feb 2020 17:15:22 +0000 (UTC)
commit 6d5668a088cbd506c797c31f7a9d10f41a270f38
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]