Commit 81f96c2f authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

Fix maybe uninitialized warnings

parent 9c09fec1
......@@ -769,7 +769,7 @@ glade_catalog_load_all (void)
/* First load catalogs from user specified directories ... */
if ((search_path = g_getenv (GLADE_ENV_CATALOG_PATH)) != NULL)
{
g_auto(GStrv) split;
g_auto(GStrv) split = NULL;
if ((split = g_strsplit (search_path, ":", 0)) != NULL)
{
......
......@@ -158,7 +158,7 @@ on_read_line_ready (GObject *source, GAsyncResult *res, gpointer data)
{
GladeHTTPPrivate *priv = GLADE_HTTP (data)->priv;
g_autoptr (GError) error = NULL;
g_autofree gchar *line;
g_autofree gchar *line = NULL;
gsize length;
glade_http_emit_status (data, GLADE_HTTP_RECEIVING, NULL);
......
......@@ -195,7 +195,7 @@ glade_registration_show_message (GladeRegistration *registration,
if (format)
{
g_autofree gchar *string;
g_autofree gchar *string = NULL;
va_list args;
va_start (args, format);
......@@ -545,7 +545,7 @@ glade_registration_save_state_foreach (GtkWidget *widget, gpointer data)
{
GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (widget));
GtkTextIter start, end;
g_autofree gchar *text;
g_autofree gchar *text = NULL;
gtk_text_buffer_get_bounds (buffer, &start, &end);
text = gtk_text_buffer_get_text (buffer, &start, &end, FALSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment