[gnome-terminal] build: Fix -Wuninitialized warnings
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] build: Fix -Wuninitialized warnings
- Date: Wed, 23 Oct 2013 21:47:22 +0000 (UTC)
commit c0b258d1908c2c8a07fc8b11cbedac2aba97fa6b
Author: Christian Persch <chpe gnome org>
Date: Wed Oct 23 15:14:37 2013 +0200
build: Fix -Wuninitialized warnings
Introduced by cleanup patches.
src/profile-editor.c | 2 +-
src/terminal-info-bar.c | 2 +-
src/terminal-settings-list.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/profile-editor.c b/src/profile-editor.c
index 1aa3025..ca820b0 100644
--- a/src/profile-editor.c
+++ b/src/profile-editor.c
@@ -577,7 +577,7 @@ rgba_to_s (const GValue *value,
gpointer user_data)
{
GdkRGBA *color;
- gs_free char *s;
+ gs_free char *s = NULL;
color = g_value_get_boxed (value);
if (color == NULL)
diff --git a/src/terminal-info-bar.c b/src/terminal-info-bar.c
index 6503bab..a40ceeb 100644
--- a/src/terminal-info-bar.c
+++ b/src/terminal-info-bar.c
@@ -95,7 +95,7 @@ terminal_info_bar_format_text (TerminalInfoBar *bar,
...)
{
TerminalInfoBarPrivate *priv;
- gs_free char *text;
+ gs_free char *text = NULL;
GtkWidget *label;
va_list args;
diff --git a/src/terminal-settings-list.c b/src/terminal-settings-list.c
index f17bb1d..e0c51aa 100644
--- a/src/terminal-settings-list.c
+++ b/src/terminal-settings-list.c
@@ -754,7 +754,7 @@ terminal_settings_list_ref_children (TerminalSettingsList *list)
GSettings *
terminal_settings_list_ref_default_child (TerminalSettingsList *list)
{
- gs_free char *uuid;
+ gs_free char *uuid = NULL;
g_return_val_if_fail (TERMINAL_IS_SETTINGS_LIST (list), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]