ges: Fix sizeof() usage
authorEdward Hervey <edward@centricular.com>
Thu, 11 Jan 2018 09:57:30 +0000 (10:57 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 11 Jan 2018 09:57:30 +0000 (10:57 +0100)
The entries of the array are "gchar *" and not "gchar **"

CID #1427091
CID #1427120

ges/ges-asset.c
ges/ges-timeline-element.c

index 77a45cf..e7f8e92 100644 (file)
@@ -301,7 +301,7 @@ ges_asset_extract_default (GESAsset * asset, GError ** error)
     const gchar **names;
 
     values = g_malloc0 (sizeof (GValue) * n_params);
-    names = g_malloc0 (sizeof (gchar **) * n_params);
+    names = g_malloc0 (sizeof (gchar *) * n_params);
 
     for (i = 0; i < n_params; i++) {
       values[i] = params[i].value;
index da6de4f..82ddad6 100644 (file)
@@ -1145,7 +1145,7 @@ ges_timeline_element_copy (GESTimelineElement * self, gboolean deep)
     GValue *values;
     const gchar **names;
     values = g_malloc0 (sizeof (GValue) * n_specs);
-    names = g_malloc0 (sizeof (gchar **) * n_specs);
+    names = g_malloc0 (sizeof (gchar *) * n_specs);
 
     for (i = 0; i < n_params; i++) {
       values[i] = params[i].value;