From 07d09bbdfc8c1259afdd2d3546496e3d8437b826 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 27 Feb 2024 13:24:48 +0000 Subject: res variable could possibly be used without being set --- content/handlers/html/interaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content/handlers') diff --git a/content/handlers/html/interaction.c b/content/handlers/html/interaction.c index 026ef1ee7..9e359c98f 100644 --- a/content/handlers/html/interaction.c +++ b/content/handlers/html/interaction.c @@ -1465,7 +1465,7 @@ html_mouse_action(struct content *c, int x, int y) { html_content *html = (html_content *)c; - nserror res; + nserror res = NSERROR_OK; /* handle open select menu */ if (html->visible_select_menu != NULL) { @@ -1493,7 +1493,7 @@ html_mouse_action(struct content *c, break; case HTML_DRAG_NONE: - res = mouse_action_drag_none(html, bw, mouse, x, y); + res = mouse_action_drag_none(html, bw, mouse, x, y); break; default: -- cgit v1.2.3