From: John Darrington Date: Thu, 11 Aug 2016 20:11:38 +0000 (+0200) Subject: Fix possible null pointer dereference X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dae6cb8b61f6c4864c428e94aaaf680de510041e;p=pspp Fix possible null pointer dereference --- diff --git a/src/output/cairo.c b/src/output/cairo.c index 1a8c78c69f..c7188af0b6 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1078,7 +1078,8 @@ xr_layout_cell_text (struct xr_driver *xr, { if (brk && clip[H][0] != clip[H][1]) best = bottom; - *brk = bottom; + if (brk) + *brk = bottom; } else break;