From 61a374637ac02ee73090a595323408904320a5f7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 11 Oct 2019 22:32:39 +0200 Subject: gtknv_end_offset_of_para: Add missing initialisation --- libstorycode/gtk/gtknarrativeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstorycode/gtk/gtknarrativeview.c b/libstorycode/gtk/gtknarrativeview.c index d53c851..57521a4 100644 --- a/libstorycode/gtk/gtknarrativeview.c +++ b/libstorycode/gtk/gtknarrativeview.c @@ -641,7 +641,7 @@ static void check_cursor_visible(GtkNarrativeView *e) static size_t gtknv_end_offset_of_para(Narrative *n, int pnum) { int i; - size_t len; + size_t len = 0; assert(pnum >= 0); if ( !narrative_item_is_text(n, pnum) ) return 0; for ( i=0; iitems[pnum].n_runs; i++ ) { -- cgit v1.2.3