aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstorycode/stylesheet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstorycode/stylesheet.c b/libstorycode/stylesheet.c
index 8fa904e..66e444c 100644
--- a/libstorycode/stylesheet.c
+++ b/libstorycode/stylesheet.c
@@ -168,6 +168,7 @@ static struct style *lookup_style(struct style *sty, const char *path)
const char *nxt = path;
assert(sty != NULL);
+ if ( path == NULL ) return NULL;
if ( path[0] == '\0' ) return sty;
for ( i=0; i<sty->n_substyles; i++ ) {