diff options
author | Vincent Sanders <vince@kyllikki.org> | 2018-09-26 21:32:35 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2018-09-26 21:32:35 +0100 |
commit | a268252629a0f6b31e5f0189454144676dd7ffaa (patch) | |
tree | f221ef76d94f6900f8cbccbc6f9df6b231ae8986 | |
parent | 5c96acd6f119b71fc75e5d48465afca9fd13e87f (diff) | |
download | netsurf-a268252629a0f6b31e5f0189454144676dd7ffaa.tar.gz netsurf-a268252629a0f6b31e5f0189454144676dd7ffaa.tar.bz2 |
gcc on openbsd is unable to reason about res variable usage and generates bogus warning
-rw-r--r-- | content/handlers/html/html_interaction.c | 2 |
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) { |