mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
Fix an off-by-one error
This commit is contained in:
parent
5033be80d1
commit
eb3e926b09
@ -747,7 +747,7 @@ g_application_list_actions (GApplication *application)
|
|||||||
|
|
||||||
priv = application->priv;
|
priv = application->priv;
|
||||||
|
|
||||||
retval = g_new (gchar*, g_hash_table_size (priv->actions));
|
retval = g_new (gchar*, g_hash_table_size (priv->actions) + 1);
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
g_hash_table_iter_init (&iter, priv->actions);
|
g_hash_table_iter_init (&iter, priv->actions);
|
||||||
|
Loading…
Reference in New Issue
Block a user