From d5cac6559d1759ca717f8c0ca9cabbc3d19cd456 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 6 Jun 2017 14:27:00 -0700 Subject: [PATCH] st: initialize static variables to NULL https://bugzilla.gnome.org/show_bug.cgi?id=783484 --- src/st/st-entry.c | 4 ++-- src/st/st-im-text.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/st/st-entry.c b/src/st/st-entry.c index 7ccf6bd7b..152f3eb8e 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -718,8 +718,8 @@ st_entry_key_focus_in (ClutterActor *actor) clutter_actor_grab_key_focus (priv->entry); } -static StEntryCursorFunc cursor_func; -static gpointer cursor_func_data; +static StEntryCursorFunc cursor_func = NULL; +static gpointer cursor_func_data = NULL; /** * st_entry_set_cursor_func: (skip) diff --git a/src/st/st-im-text.c b/src/st/st-im-text.c index 5f86f88b9..6498cfb5d 100644 --- a/src/st/st-im-text.c +++ b/src/st/st-im-text.c @@ -202,7 +202,7 @@ st_im_text_get_paint_volume (ClutterActor *self, return clutter_paint_volume_set_from_allocation (volume, self); } -static GdkWindow *event_window; +static GdkWindow *event_window = NULL; void st_im_text_set_event_window (GdkWindow *window)