projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix possible null pointer dereference
[pspp]
/
src
/
output
/
cairo.c
diff --git
a/src/output/cairo.c
b/src/output/cairo.c
index 1a8c78c69fe0d0062dcb379aa0f4d758c2ebb48c..c7188af0b60a1ab24cc15f30296ee8916d442495 100644
(file)
--- 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;