From 55c77ac30754985c4d02138476cf053d2dd863fd Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 30 Apr 2019 17:52:03 +0200 Subject: Add an assertion --- libstorycode/stylesheet.c | 1 + 1 file changed, 1 insertion(+) 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; in_substyles; i++ ) { -- cgit v1.2.3