From dabdffafa59f43314333be42aa519d7fff1b4498 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 23 Aug 2020 07:42:20 +0200 Subject: don't use empty struct initializers --- selection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'selection.c') diff --git a/selection.c b/selection.c index cb8eb985..9062c606 100644 --- a/selection.c +++ b/selection.c @@ -325,7 +325,7 @@ selection_modify(struct terminal *term, struct coord start, struct coord end) assert(start.row != -1 && start.col != -1); assert(end.row != -1 && end.col != -1); - struct mark_context ctx = {}; + struct mark_context ctx = {0}; /* Premark all cells that *will* be selected */ foreach_selected(term, start, end, &premark_selected, &ctx); @@ -452,7 +452,7 @@ selection_dirty_cells(struct terminal *term) foreach_selected( term, term->selection.start, term->selection.end, &mark_selected, - &(struct mark_context){}); + &(struct mark_context){0}); } static void @@ -647,7 +647,7 @@ selection_cancel(struct terminal *term) if (term->selection.start.row >= 0 && term->selection.end.row >= 0) { foreach_selected( term, term->selection.start, term->selection.end, - &unmark_selected, &(struct mark_context){}); + &unmark_selected, &(struct mark_context){0}); render_refresh(term); } -- cgit v1.3