From c4156b1909175cd74154fa4217be053c1180ae9c Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 17 Apr 2022 10:36:33 -0400 Subject: viewports, set flags to VP_DEFAULT_FLAGS flags were getting un-initialized memory it really didn't matter with the flags getting initialized anyway But once I added a new flag that didn't explicitly set or clear the flag at init well here we are set flags to VP_DEFAULT_FLAGS in viewport_set_defaults() add the flags variable to the default vp's set to 0 (it was already initialized to 0 by bss, make it explicit) Change-Id: I3a9a062455b4cf66d2b8c70fdf05402a5c0c091c --- apps/gui/viewport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui/viewport.c') diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 3dd8bca979..9f9cb186f5 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -332,7 +332,7 @@ void viewport_set_defaults(struct viewport *vp, const enum screen_type screen) { vp->buffer = NULL; /* use default frame_buffer */ - + vp->flags = VP_DEFAULT_FLAGS; #if !defined(__PCTOOL__) struct viewport *sbs_area = NULL; if (!is_theme_enabled(screen)) -- cgit v1.2.3