aboutsummaryrefslogtreecommitdiff
path: root/src/sc_interp.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-10-21 18:03:01 +0200
committerThomas White <taw@bitwiz.me.uk>2018-10-21 18:03:01 +0200
commit27e08c96c71183edea9be3e189d7152c19b1beac (patch)
tree428735ad37dbfcb9598c4ae3854252a4092d3f8f /src/sc_interp.c
parenta85c7fd76dd50d82841e01018b532ad790f8c564 (diff)
Try <documentname>.ss for stylesheet
Diffstat (limited to 'src/sc_interp.c')
-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 780663f..010b100 100644
--- a/src/sc_interp.c
+++ b/src/sc_interp.c
@@ -945,6 +945,8 @@ static void apply_style(SCInterpreter *scin, Stylesheet *ss, const char *path)
return;
}
+ if ( ss == NULL ) return;
+
/* Font */
strcpy(fullpath, path);
strcat(fullpath, ".font");