From: Charles McGarvey Date: Thu, 29 Dec 2016 02:16:08 +0000 (-0700) Subject: fix improper struct_type argument to g_new0 X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=1ca364009b2ea45e84f91a82a90302b010e2a002;p=chaz%2Fhomebank fix improper struct_type argument to g_new0 --- 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) {