diff options
author | David King <amigadave@amigadave.com> | 2014-09-16 14:41:01 +0100 |
---|---|---|
committer | David King <amigadave@amigadave.com> | 2014-09-23 13:19:04 +0100 |
commit | 79fdc6011468b891b1a8d21103da57cec1d38041 (patch) | |
tree | b3073c6cf343f5de8fe25935732e5e0ec28339ae | |
parent | bac2f36f12ec3c95711b0da45c999228ec95835e (diff) |
Avoid dereferencing an uninitialized variable
Found with Coverity (CID 56653).
-rw-r--r-- | src/thumbview/eog-thumb-nav.c | 2 |
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; } |