From 21f01af35abc7656837bf3cb0446cee1ec2ae3f8 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 16 May 2011 22:09:26 +0000 Subject: [PATCH] Avoid dereferencing NULL svn path=/trunk/netsurf/; revision=12421 --- desktop/frames.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/frames.c b/desktop/frames.c index e4bbabb9e..ec5bb27f3 100644 --- a/desktop/frames.c +++ b/desktop/frames.c @@ -153,7 +153,8 @@ void browser_window_recalculate_iframes(struct browser_window *bw) { rect.x0, rect.y0, rect.x1, rect.y1); } else { - LOG(("Bad IFrame window=%p, box=%p",window,window->box)); + LOG(("Bad IFrame window=%p, box=%p", window, + window->box != NULL ? window->box : NULL)); } } }