summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2014-09-16 14:41:01 +0100
committerDavid King <amigadave@amigadave.com>2014-09-23 13:19:04 +0100
commit79fdc6011468b891b1a8d21103da57cec1d38041 (patch)
treeb3073c6cf343f5de8fe25935732e5e0ec28339ae
parentbac2f36f12ec3c95711b0da45c999228ec95835e (diff)
Avoid dereferencing an uninitialized variable
Found with Coverity (CID 56653).
-rw-r--r--src/thumbview/eog-thumb-nav.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/thumbview/eog-thumb-nav.c b/src/thumbview/eog-thumb-nav.c
index b1703916..5a4114d1 100644
--- a/src/thumbview/eog-thumb-nav.c
+++ b/src/thumbview/eog-thumb-nav.c
@@ -619,6 +619,8 @@ eog_thumb_nav_get_show_buttons (EogThumbNav *nav)
g_return_val_if_fail (EOG_IS_THUMB_NAV (nav), FALSE);
+ priv = eog_thumb_nav_get_instance_private (nav);
+
return priv->show_buttons;
}