diff options
author | David Schleef <ds@wendolyne.(none)> | 2010-08-25 03:26:20 -0700 |
---|---|---|
committer | David Schleef <ds@wendolyne.(none)> | 2010-08-25 03:26:40 -0700 |
commit | cbc9fdceb694c01fb5653352c74b3a4b5cc47e53 (patch) | |
tree | e9eccd41f586bd25cf731d9c1c4b7f5b62fc6795 | |
parent | 5e8a6257da92f90898f8a8c553124ecda50d3171 (diff) |
show_parse: Allocate array (fix segfault)
-rw-r--r-- | testsuite/show_parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/show_parse.c b/testsuite/show_parse.c index 655ff2d..45ee92d 100644 --- a/testsuite/show_parse.c +++ b/testsuite/show_parse.c @@ -75,6 +75,7 @@ main (int argc, char *argv[]) opcode = orc_opcode_find_by_name (filename); if (opcode) { + programs = malloc(sizeof(void *)); programs[0] = orc_test_get_program_for_opcode (opcode); n = 1; } else { |