summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2024-02-27 13:24:48 +0000
committerVincent Sanders <vince@kyllikki.org>2024-02-27 13:24:48 +0000
commit07d09bbdfc8c1259afdd2d3546496e3d8437b826 (patch)
tree583759d739d98fa463b61d9439c46eef94a1f98b /content/handlers
parentcea268ddc6d525187ad9173cc3879ad43e201e2d (diff)
downloadnetsurf-07d09bbdfc8c1259afdd2d3546496e3d8437b826.tar.gz
netsurf-07d09bbdfc8c1259afdd2d3546496e3d8437b826.tar.bz2
res variable could possibly be used without being set
Diffstat (limited to 'content/handlers')
-rw-r--r--content/handlers/html/interaction.c4
1 files changed, 2 insertions, 2 deletions
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: