Browse Source

No uninitialized pointers

(cherry picked from commit a55062f)
sisyphus
Scott Balneaves 9 years ago committed by Dustin Falgout
parent
commit
043a15e550
  1. 12
      src/lightdm-webkit2-greeter-ext.c

12
src/lightdm-webkit2-greeter-ext.c

@ -654,7 +654,7 @@ get_hint_cb(JSContextRef context,
const JSValueRef arguments[], const JSValueRef arguments[],
JSValueRef *exception) { JSValueRef *exception) {
gchar *hint_name; gchar *hint_name = NULL;
JSValueRef result; JSValueRef result;
if (argumentCount != 1) { if (argumentCount != 1) {
@ -682,7 +682,7 @@ respond_cb(JSContextRef context,
const JSValueRef arguments[], const JSValueRef arguments[],
JSValueRef *exception) { JSValueRef *exception) {
gchar *response; gchar *response = NULL;
if (argumentCount != 1) { if (argumentCount != 1) {
return mkexception(context, exception, ARGNOTSUPPLIED); return mkexception(context, exception, ARGNOTSUPPLIED);
@ -934,7 +934,7 @@ set_language_cb(JSContextRef context,
const JSValueRef arguments[], const JSValueRef arguments[],
JSValueRef *exception) { JSValueRef *exception) {
gchar *language; gchar *language = NULL;
if (argumentCount != 1) { if (argumentCount != 1) {
return mkexception(context, exception, ARGNOTSUPPLIED); return mkexception(context, exception, ARGNOTSUPPLIED);
@ -962,7 +962,7 @@ gettext_cb(JSContextRef context,
const JSValueRef arguments[], const JSValueRef arguments[],
JSValueRef *exception) { JSValueRef *exception) {
gchar *string; gchar *string = NULL;
JSValueRef result; JSValueRef result;
if (argumentCount != 1) { if (argumentCount != 1) {
@ -990,8 +990,8 @@ ngettext_cb(JSContextRef context,
const JSValueRef arguments[], const JSValueRef arguments[],
JSValueRef *exception) { JSValueRef *exception) {
gchar *string, *plural_string; gchar *string = NULL, *plural_string = NULL;
unsigned int n; unsigned int n = 0;
JSValueRef result; JSValueRef result;
if (argumentCount != 3) { if (argumentCount != 3) {

Loading…
Cancel
Save