aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-07-06 22:53:59 +0200
committerThomas White <taw@bitwiz.me.uk>2018-07-06 22:54:26 +0200
commita2ef3f8b5c1504d33f300ef6b14625ccf199ed98 (patch)
treea895065e3d77938dbd9f9c2f8d11acf4b468d3f1 /src/frame.c
parent709c9325c2186ae79097545ddf04a9a57c44df58 (diff)
Expose sc_interp_run_style()
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];
}