diff options
Diffstat (limited to 'src/runes.c')
-rw-r--r-- | src/runes.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/runes.c b/src/runes.c index 1078ee9..af32778 100644 --- a/src/runes.c +++ b/src/runes.c @@ -1,4 +1,5 @@ #include <locale.h> +#include <stdlib.h> #include "runes.h" @@ -8,17 +9,18 @@ int main (int argc, char *argv[]) { RunesLoop loop; - RunesTerm t; + RunesTerm *t; setlocale(LC_ALL, ""); runes_loop_init(&loop); - runes_term_init(&t, &loop, argc, argv); + + t = calloc(1, sizeof(RunesTerm)); + runes_term_init(t, &loop, argc, argv); runes_loop_run(&loop); #ifdef RUNES_VALGRIND - runes_term_cleanup(&t); runes_loop_cleanup(&loop); #endif |