summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-09-26 21:32:35 +0100
committerVincent Sanders <vince@kyllikki.org>2018-09-26 21:32:35 +0100
commita268252629a0f6b31e5f0189454144676dd7ffaa (patch)
treef221ef76d94f6900f8cbccbc6f9df6b231ae8986 /content/handlers
parent5c96acd6f119b71fc75e5d48465afca9fd13e87f (diff)
downloadnetsurf-a268252629a0f6b31e5f0189454144676dd7ffaa.tar.gz
netsurf-a268252629a0f6b31e5f0189454144676dd7ffaa.tar.bz2
gcc on openbsd is unable to reason about res variable usage and generates bogus warning
Diffstat (limited to 'content/handlers')
-rw-r--r--content/handlers/html/html_interaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/html/html_interaction.c b/content/handlers/html/html_interaction.c
index 04d14aa81..da4c67c40 100644
--- a/content/handlers/html/html_interaction.c
+++ b/content/handlers/html/html_interaction.c
@@ -389,7 +389,7 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
BROWSER_MOUSE_CLICK_1 | BROWSER_MOUSE_CLICK_2 |
BROWSER_MOUSE_DRAG_1 | BROWSER_MOUSE_DRAG_2);
- nserror res;
+ nserror res = NSERROR_OK;
if (drag_type != DRAGGING_NONE && !mouse &&
html->visible_select_menu != NULL) {