[balsa/wip/gmime3: 19/197] Assert that the BalsaWindow is not NULL
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gmime3: 19/197] Assert that the BalsaWindow is not NULL
- Date: Wed, 23 May 2018 21:13:57 +0000 (UTC)
commit d8ccd9cc1b4a9289c4e5e94ef7813282d4658647
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Jun 28 18:02:08 2017 -0400
Assert that the BalsaWindow is not NULL
* src/main-window.c (bw_action_set_enabled): assert that the
BalsaWindow is not NULL.
ChangeLog | 7 +++++++
src/main-window.c | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 371e5fb..3c475a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2017-06-28 Peter Bloomfield <pbloomfield bellsouth net>
+ Assert that the BalsaWindow is not NULL
+
+ * src/main-window.c (bw_action_set_enabled): assert that the
+ BalsaWindow is not NULL.
+
+2017-06-28 Peter Bloomfield <pbloomfield bellsouth net>
+
Handle GError pointer more carefully
* libbalsa/body.c
diff --git a/src/main-window.c b/src/main-window.c
index 118cba1..4c3d5c2 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -769,6 +769,8 @@ bw_action_set_enabled(BalsaWindow * window,
{
GAction *action;
+ g_assert(window != NULL);
+
/* Is the window being destroyed? */
if (window->preview == NULL)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]