]> Dogcows Code - chaz/homebank/commitdiff
fix improper struct_type argument to g_new0
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 29 Dec 2016 02:16:08 +0000 (19:16 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Thu, 29 Dec 2016 02:16:08 +0000 (19:16 -0700)
src/ext.c
src/hb-preferences.c

index b366491b231dc2ec9ff3e7901b1753acdcd0da10..d652c0e11574ed2248c25146fc16714407ca0062 100644 (file)
--- 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);
index d257ca7c3dcc7035f0713b8d0ed155ad90c9f552..076a5460df5166d4fb8b8226c27817ba59094702 100644 (file)
@@ -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) {
This page took 0.020522 seconds and 4 git commands to generate.