aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-08 17:10:47 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-08 19:40:29 +0100
commit024e456ddadd67f212d84665501869c568a106fb (patch)
tree1fbc32e0c155cc2c656eae17c2188ed480e54f90 /view.c
parent3435cf05fb063d92e1cfa3cd7ccb71ae5f792411 (diff)
downloadvis-024e456ddadd67f212d84665501869c568a106fb.tar.gz
vis-024e456ddadd67f212d84665501869c568a106fb.tar.xz
Fix warnings found by static analyzer
Diffstat (limited to 'view.c')
-rw-r--r--view.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/view.c b/view.c
index 8931301..542a9e1 100644
--- a/view.c
+++ b/view.c
@@ -599,8 +599,7 @@ bool view_resize(View *view, int width, int height) {
}
view->width = width;
view->height = height;
- if (view->lines)
- memset(view->lines, 0, view->lines_size);
+ memset(view->lines, 0, view->lines_size);
view_draw(view);
return true;
}