summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2013-05-04 17:01:00 +0100
committerVincent Sanders <vince@netsurf-browser.org>2013-05-04 17:01:00 +0100
commit30b1fc1dbd8eb5adbf1d2703ba360bf5b32e0751 (patch)
treecd158b756daba797debec438beaca1154ef77773 /desktop
parent7e2a93bb72fbbef29d2295651eb8b965d152c77c (diff)
downloadnetsurf-30b1fc1dbd8eb5adbf1d2703ba360bf5b32e0751.tar.gz
netsurf-30b1fc1dbd8eb5adbf1d2703ba360bf5b32e0751.tar.bz2
add assert to ensure API contract is met
Diffstat (limited to 'desktop')
-rw-r--r--desktop/browser.c2
1 files changed, 2 insertions, 0 deletions
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;