diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-04-30 17:52:03 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-04-30 18:01:22 +0200 |
commit | 55c77ac30754985c4d02138476cf053d2dd863fd (patch) | |
tree | 82571971cc79d8f3d534d15669a5a4110d7edcf8 /libstorycode | |
parent | c1b0437dd1f1bc6df338ad9fc15d270b9cc33884 (diff) |
Add an assertion
Diffstat (limited to 'libstorycode')
-rw-r--r-- | libstorycode/stylesheet.c | 1 |
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++ ) { |