From 30b1fc1dbd8eb5adbf1d2703ba360bf5b32e0751 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 4 May 2013 17:01:00 +0100 Subject: add assert to ensure API contract is met --- desktop/browser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index 9e12e8c0d..77fe11264 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -2894,6 +2894,8 @@ void browser_window_redraw_rect(struct browser_window *bw, int x, int y, void browser_window_page_drag_start(struct browser_window *bw, int x, int y) { + assert(bw != NULL); + browser_window_set_drag_type(bw, DRAGGING_PAGE_SCROLL, NULL); bw->drag_start_x = x; -- cgit v1.2.3