[cheese/gnome-3-14] Avoid dereferencing an uninitialized variable
- From: David King <davidk src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [cheese/gnome-3-14] Avoid dereferencing an uninitialized variable
 
- Date: Tue, 23 Sep 2014 12:20:16 +0000 (UTC)
 
commit 74e329ffa75cf5384b3dfb0ec09d7a302dff77a6
Author: David King <amigadave amigadave com>
Date:   Tue Sep 16 14:41:01 2014 +0100
    Avoid dereferencing an uninitialized variable
    
    Found with Coverity (CID 56653).
 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 b170391..5a4114d 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;
 }
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]