[gtk+] gtkcsscalcvalue: avoid unitialized boolean
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkcsscalcvalue: avoid unitialized boolean
- Date: Thu, 18 Feb 2016 14:33:41 +0000 (UTC)
commit 11b3efbddaac76e03268454ff03a0b9aa5875cf1
Author: Carlos Soriano <csoriano gnome org>
Date: Thu Feb 18 15:27:25 2016 +0100
gtkcsscalcvalue: avoid unitialized boolean
Since we do an OR afterwards, initializing to FALSE is correct.
gtk/gtkcsscalcvalue.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcsscalcvalue.c b/gtk/gtkcsscalcvalue.c
index 8a2741a..2004fba 100644
--- a/gtk/gtkcsscalcvalue.c
+++ b/gtk/gtkcsscalcvalue.c
@@ -106,7 +106,7 @@ gtk_css_value_calc_compute (GtkCssValue *value,
{
GtkCssValue *result;
GPtrArray *array;
- gboolean changed;
+ gboolean changed = FALSE;
gsize i;
array = g_ptr_array_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]