From 1ca364009b2ea45e84f91a82a90302b010e2a002 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Wed, 28 Dec 2016 19:16:08 -0700 Subject: [PATCH] fix improper struct_type argument to g_new0 --- src/ext.c | 2 +- src/hb-preferences.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ext.c b/src/ext.c index b366491..d652c0e 100644 --- a/src/ext.c +++ b/src/ext.c @@ -133,7 +133,7 @@ gchar** ext_list_plugins() g_hash_table_unref(hash); guint len = g_list_length(list); - gchar** strv = g_new0(gchar**, len + 1); + gchar** strv = g_new0(gchar*, len + 1); int i; for (i = 0; i < len; ++i) { strv[i] = g_list_nth_data(list, i); diff --git a/src/hb-preferences.c b/src/hb-preferences.c index d257ca7..076a546 100644 --- a/src/hb-preferences.c +++ b/src/hb-preferences.c @@ -430,7 +430,7 @@ gint i; PREFS->vehicle_unit_ismile = FALSE; PREFS->vehicle_unit_isgal = FALSE; - gchar** plugin_path = g_new0(gchar**, 4); + gchar** plugin_path = g_new0(gchar*, 4); i = 0; const gchar* env = g_getenv("HOMEBANK_PLUGINS"); if (env) { -- 2.45.2