diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-10-23 10:57:35 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2011-10-23 10:57:35 +0100 |
commit | 04d9338eef4c3b864a1693f8312ce35f9ac8302c (patch) | |
tree | e57160ed13758f69810a03720862b1596bcfd534 /src | |
parent | 32124e557dd9d1e25b0b279fb94e83f717a83ab0 (diff) |
Initialise styles to zero
Diffstat (limited to 'src')
-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); |