diff options
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r-- | src/stylesheet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c index fea78c1..69ff98c 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -415,7 +415,7 @@ static struct style *new_style(StyleSheet *ss, const char *name) int n; struct style **styles_new; - sty = malloc(sizeof(*sty)); + sty = calloc(1, sizeof(*sty)); if ( sty == NULL ) return NULL; sty->name = strdup(name); |