aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-09-14 11:13:43 +0200
committerThomas White <taw@bitwiz.org.uk>2014-09-14 11:13:43 +0200
commitec4f394db8d6b74da01fa98a24a4e111f06b223d (patch)
treeb7b7b869f3dc8cba3d455f7a1015ce000e6020d6 /src
parent7b302ea4b906b162c37c3370434165f6e83a9def (diff)
Fix tests
Diffstat (limited to 'src')
-rw-r--r--src/sc_interp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c
index 541c259..2a07ced 100644
--- a/src/sc_interp.c
+++ b/src/sc_interp.c
@@ -761,6 +761,8 @@ void add_macro(SCInterpreter *scin, const char *mname, const char *contents)
void sc_interp_run_stylesheet(SCInterpreter *scin, SCBlock *bl)
{
+ if ( bl == NULL ) return;
+
if ( strcmp(sc_block_name(bl), "stylesheet") != 0 ) {
fprintf(stderr, "Style sheet isn't a style sheet.\n");
return;