summaryrefslogtreecommitdiff
path: root/src/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-25 09:43:57 (GMT)
commit8e275f286138db88140d1643d1008f130ba7f484 (patch)
treeeea120992ae5a9c2a341e3bee336620ecdc65a6f /src/glibext
parentfd0df8f884336fc69bd0938453f9712c166f08c8 (diff)
Avoided stack overflows with empty dynamic parameters.
Diffstat (limited to 'src/glibext')
-rw-r--r--src/glibext/gbuffercache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glibext/gbuffercache.c b/src/glibext/gbuffercache.c
index 8d02dd8..82d77c0 100644
--- a/src/glibext/gbuffercache.c
+++ b/src/glibext/gbuffercache.c
@@ -449,7 +449,7 @@ static GBufferLine *get_cache_info_line(cache_info *info, size_t index, const GB
if (result == NULL)
{
- result = g_buffer_line_new((mrange_t []){ { { 0 }, 0 } }, 0/* !! */);
+ result = g_buffer_line_new(UNUSED_MRANGE_PTR, 0/* !! */);
g_object_add_toggle_ref(G_OBJECT(result), (GToggleNotify)on_line_ref_toggle, info);