diff options
Diffstat (limited to 'tests/render_test.c')
-rw-r--r-- | tests/render_test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/render_test.c b/tests/render_test.c index 79d1110..88bcf6a 100644 --- a/tests/render_test.c +++ b/tests/render_test.c @@ -3,7 +3,7 @@ * * Rendering test * - * Copyright © 2012-2013 Thomas White <taw@bitwiz.org.uk> + * Copyright © 2012-2014 Thomas White <taw@bitwiz.org.uk> * * This file is part of Colloquium. * @@ -79,10 +79,8 @@ int main(int argc, char *argv[]) gtk_init(&argc, &argv); - fr = calloc(1, sizeof(struct frame)); + fr = frame_new(); if ( fr == NULL ) return 1; - fr->children = NULL; - fr->num_children = 0; fr->scblocks = sc_parse(sc); if ( fr->scblocks == NULL ) { fprintf(stderr, "SC parse failed.\n"); |