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