[hitori] core: Fix a potential NULL pointer dereference
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hitori] core: Fix a potential NULL pointer dereference
- Date: Wed, 11 Jun 2014 08:13:19 +0000 (UTC)
commit c4cbc9eecac1694189b13e657819d16f95244e3c
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue May 6 11:53:04 2014 +0100
core: Fix a potential NULL pointer dereference
src/main.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 5cb938f..f53271a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -275,11 +275,11 @@ hitori_clear_undo_stack (Hitori *hitori)
if (hitori->undo_stack->type == UNDO_NEW_GAME)
break;
}
- }
- /* Reset the "new game" item */
- hitori->undo_stack->undo = NULL;
- hitori->undo_stack->redo = NULL;
+ /* Reset the "new game" item */
+ hitori->undo_stack->undo = NULL;
+ hitori->undo_stack->redo = NULL;
+ }
g_simple_action_set_enabled (hitori->undo_action, FALSE);
g_simple_action_set_enabled (hitori->redo_action, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]