From 043a15e55009718b792ff7fe30cc9be3446ce1b5 Mon Sep 17 00:00:00 2001 From: Scott Balneaves Date: Wed, 17 Feb 2016 19:08:04 -0600 Subject: [PATCH] No uninitialized pointers (cherry picked from commit a55062f) --- src/lightdm-webkit2-greeter-ext.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lightdm-webkit2-greeter-ext.c b/src/lightdm-webkit2-greeter-ext.c index d9d9c56..20b1c3d 100644 --- a/src/lightdm-webkit2-greeter-ext.c +++ b/src/lightdm-webkit2-greeter-ext.c @@ -654,7 +654,7 @@ get_hint_cb(JSContextRef context, const JSValueRef arguments[], JSValueRef *exception) { - gchar *hint_name; + gchar *hint_name = NULL; JSValueRef result; if (argumentCount != 1) { @@ -682,7 +682,7 @@ respond_cb(JSContextRef context, const JSValueRef arguments[], JSValueRef *exception) { - gchar *response; + gchar *response = NULL; if (argumentCount != 1) { return mkexception(context, exception, ARGNOTSUPPLIED); @@ -934,7 +934,7 @@ set_language_cb(JSContextRef context, const JSValueRef arguments[], JSValueRef *exception) { - gchar *language; + gchar *language = NULL; if (argumentCount != 1) { return mkexception(context, exception, ARGNOTSUPPLIED); @@ -962,7 +962,7 @@ gettext_cb(JSContextRef context, const JSValueRef arguments[], JSValueRef *exception) { - gchar *string; + gchar *string = NULL; JSValueRef result; if (argumentCount != 1) { @@ -990,8 +990,8 @@ ngettext_cb(JSContextRef context, const JSValueRef arguments[], JSValueRef *exception) { - gchar *string, *plural_string; - unsigned int n; + gchar *string = NULL, *plural_string = NULL; + unsigned int n = 0; JSValueRef result; if (argumentCount != 3) {