[egg-list-box] flow-box: Avoid passing null to egg_flow_box_select_child_info
- From: Michael Wood <mwood src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [egg-list-box] flow-box: Avoid passing null to egg_flow_box_select_child_info
- Date: Sat, 20 Jul 2013 08:38:36 +0000 (UTC)
commit b0131f8ad049e5debe44e3326cc1a8cab1739e3a
Author: Michael Wood <michael g wood intel com>
Date: Thu Jul 18 16:26:01 2013 +0100
flow-box: Avoid passing null to egg_flow_box_select_child_info
egg_flow_box_select_child_info dereferences child_info so we should
include this call in the null check.
egg-flow-box.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/egg-flow-box.c b/egg-flow-box.c
index 245b73f..d8ef538 100644
--- a/egg-flow-box.c
+++ b/egg-flow-box.c
@@ -2382,9 +2382,10 @@ egg_flow_box_select_and_activate (EggFlowBox *box,
GtkWidget *w = NULL;
if (child_info != NULL)
- w = child_info->widget;
-
- egg_flow_box_select_child_info (box, child_info);
+ {
+ w = child_info->widget;
+ egg_flow_box_select_child_info (box, child_info);
+ }
if (w != NULL)
g_signal_emit (box, signals[CHILD_ACTIVATED], 0, w);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]