diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-05-09 23:04:11 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-05-09 23:04:11 +0200 |
commit | f4dbc27618e54fff8f926ebb6298c375725fd4bf (patch) | |
tree | c2027810e6ec234da3922f027aa63b96a287babd /src/storycode.c | |
parent | 7ca0e4e398cea2e93b2597985b9f449d67060a39 (diff) |
Clean up
Diffstat (limited to 'src/storycode.c')
-rw-r--r-- | src/storycode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storycode.c b/src/storycode.c index 8cc1a1f..27dbc43 100644 --- a/src/storycode.c +++ b/src/storycode.c @@ -259,6 +259,8 @@ SCBlockList *sc_find_blocks(const char *sc, const char *blockname) char *tbuf; size_t len, i, j, start; + if ( sc == NULL ) return NULL; + bl = sc_block_list_new(); if ( bl == NULL ) return NULL; |