diff options
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-01-08 15:39:18 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2014-01-08 21:27:53 -0800 |
commit | 2d91ee171b10bdf76ce97611d13b10913960a10c (patch) | |
tree | 9055a77129a380fde917037946bdac7e33f02831 /src/screenshooter.c | |
parent | ca6bd745b847e6dc301d5f642bca23b21a80e5e3 (diff) | |
download | weston-2d91ee171b10bdf76ce97611d13b10913960a10c.tar.gz |
screenshooter: silence a warning
screenshooter.c: In function ‘recorder_binding’:
screenshooter.c:509:5: warning: ‘listener’ may be used uninitialized in
this function [-Wuninitialized]
This was not really a problem so far, because the variable was
uninitialized only in the case where Weston had no outputs.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'src/screenshooter.c')
-rw-r--r-- | src/screenshooter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshooter.c b/src/screenshooter.c index 0489f92f..26e503ce 100644 --- a/src/screenshooter.c +++ b/src/screenshooter.c @@ -495,7 +495,7 @@ recorder_binding(struct weston_seat *seat, uint32_t time, uint32_t key, void *da struct weston_seat *ws = (struct weston_seat *) seat; struct weston_compositor *ec = ws->compositor; struct weston_output *output; - struct wl_listener *listener; + struct wl_listener *listener = NULL; struct weston_recorder *recorder; static const char filename[] = "capture.wcap"; |