diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2015-07-13 19:48:12 +0200 |
---|---|---|
committer | Pavel Grunt <pgrunt@redhat.com> | 2015-07-13 22:58:58 +0200 |
commit | f808f09d05ca0d3102f49524594643b53f8fda36 (patch) | |
tree | db97655b2fa9e0b1cf09cdd233d6b371e17ce855 /src | |
parent | 4b5e6ec2114e1250c81027ebeac9cfe8d059153f (diff) | |
download | spice-gtk-f808f09d05ca0d3102f49524594643b53f8fda36.tar.gz spice-gtk-f808f09d05ca0d3102f49524594643b53f8fda36.tar.xz spice-gtk-f808f09d05ca0d3102f49524594643b53f8fda36.zip |
Use g_return_val_if_fail instead of wrong g_return_if_fail
The commit 4b5e6ec2114e1250c81027ebeac9cfe8d059153f introduced a function
returning gboolean, g_return_val_if_fail() should be used instead of
g_return_if_fail().
Diffstat (limited to 'src')
-rw-r--r-- | src/channel-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channel-main.c b/src/channel-main.c index 3bd5a02..1b9c4d4 100644 --- a/src/channel-main.c +++ b/src/channel-main.c @@ -1420,7 +1420,7 @@ static gboolean any_display_has_dimensions(SpiceMainChannel *channel) SpiceMainChannelPrivate *c; guint i; - g_return_if_fail(SPICE_IS_MAIN_CHANNEL(channel)); + g_return_val_if_fail(SPICE_IS_MAIN_CHANNEL(channel), FALSE); c = channel->priv; for (i = 0; i < MAX_DISPLAY; i++) { |