diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-10-11 22:32:39 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-10-11 22:32:39 +0200 |
commit | 61a374637ac02ee73090a595323408904320a5f7 (patch) | |
tree | fd21f2d513bb2278339bd9f79f0335d2daaa2fcc | |
parent | 0a605ec565f3ccdbaa4c72b20a1b3586cc53ceb8 (diff) |
gtknv_end_offset_of_para: Add missing initialisation
-rw-r--r-- | libstorycode/gtk/gtknarrativeview.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; i<n->items[pnum].n_runs; i++ ) { |