[gnome-logs/gnome-3-16] Give has_boot_id an initial value of FALSE
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs/gnome-3-16] Give has_boot_id an initial value of FALSE
- Date: Thu, 26 Mar 2015 16:44:58 +0000 (UTC)
commit 262f694e625abbe3441da17fcd4b6e5b839a0d31
Author: Jonathan Kang <jonathan121537 gmail com>
Date: Thu Mar 12 07:46:22 2015 +0800
Give has_boot_id an initial value of FALSE
has_boot_id was not initialized, which may lead to an unexpacted error.
Give has_boot_id an initial value of FALSE to solve it.
https://bugzilla.gnome.org/show_bug.cgi?id=746503
src/gl-journal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gl-journal.c b/src/gl-journal.c
index dcf4c2a..e888675 100644
--- a/src/gl-journal.c
+++ b/src/gl-journal.c
@@ -396,7 +396,7 @@ gl_journal_set_matches (GlJournal *journal,
GPtrArray *mandatory_fields;
int r;
gint i;
- gboolean has_boot_id;
+ gboolean has_boot_id = FALSE;
g_return_if_fail (matches != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]