aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 785ec7b..c7c1b2f 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -573,6 +573,7 @@ double total_height(struct frame *fr)
Paragraph *last_para(struct frame *fr)
{
+ if ( fr == NULL ) return NULL;
if ( fr->paras == NULL ) return NULL;
return fr->paras[fr->n_paras-1];
}