gcc on openbsd is unable to reason about res variable usage and generates bogus warning

This commit is contained in:
Vincent Sanders 2018-09-26 21:32:35 +01:00
parent 5c96acd6f1
commit a268252629

View File

@ -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) {