projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b79423
)
glcontext: Initialize variable
author
Edward Hervey
<bilboed@bilboed.com>
Mon, 29 Sep 2014 06:54:29 +0000
(08:54 +0200)
committer
Edward Hervey
<bilboed@bilboed.com>
Mon, 29 Sep 2014 06:54:29 +0000
(08:54 +0200)
Avoids the following warning:
gstglcontext.c:647:58: error: 'prev' may be used uninitialized in
this function [-Werror=maybe-uninitialized]
gst-libs/gst/gl/gstglcontext.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstglcontext.c
b/gst-libs/gst/gl/gstglcontext.c
index 73dc472421a499cf2ff9ba2cc3bcea65834087f1..783fb045092909ce43ea447c6d32f356183bfe6f 100644
(file)
--- a/
gst-libs/gst/gl/gstglcontext.c
+++ b/
gst-libs/gst/gl/gstglcontext.c
@@
-585,7
+585,7
@@
_share_group_descendant (GstGLContext * context, GstGLContext * other_context,
GstGLContext ** root)
{
GstGLContext *next = gst_object_ref (context);
- GstGLContext *prev;
+ GstGLContext *prev
= NULL
;
/* given a context tree where --> means "has other gl context":
*