From b0b08d5010d3a47ae636310dbdecd175ffb54dc2 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sat, 8 Aug 2015 20:12:09 +0800 Subject: [PATCH] build: Fix return value in meta-sync-ring.c https://bugzilla.gnome.org/show_bug.cgi?id=753380 --- src/compositor/meta-sync-ring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compositor/meta-sync-ring.c b/src/compositor/meta-sync-ring.c index 44b1c41d7..217ebe569 100644 --- a/src/compositor/meta-sync-ring.c +++ b/src/compositor/meta-sync-ring.c @@ -499,7 +499,7 @@ meta_sync_ring_after_frame (void) if (!ring) return FALSE; - g_return_if_fail (ring->xdisplay != NULL); + g_return_val_if_fail (ring->xdisplay != NULL, FALSE); if (ring->warmup_syncs >= NUM_SYNCS / 2) { @@ -542,7 +542,7 @@ meta_sync_ring_insert_wait (void) if (!ring) return FALSE; - g_return_if_fail (ring->xdisplay != NULL); + g_return_val_if_fail (ring->xdisplay != NULL, FALSE); if (ring->current_sync->state != META_SYNC_STATE_READY) {