devicemonitor: Avoid maybe-uninitialized compiler warning
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Mon, 6 Nov 2017 19:23:12 +0000 (20:23 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 4 Dec 2017 10:56:44 +0000 (10:56 +0000)
commitd9b20492f328cd89b618de00374e6999ddf45876
tree5da6d2e5c7823ff8dea996920c5c637f35a47080
parent464f840a2341eef41a221e627e8db146279adda0
devicemonitor: Avoid maybe-uninitialized compiler warning

On Arch Linux x86_64, gcc 7.2.0-3, -Og -g3:

gstdevicemonitor.c: In function ‘bus_sync_message’:
gstdevicemonitor.c:276:8: error: ‘matches’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

This commit also simplifies the code a bit.

https://bugzilla.gnome.org/show_bug.cgi?id=789983
gst/gstdevicemonitor.c