projects
/
platform
/
upstream
/
orc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8a625
)
show_parse: Allocate array (fix segfault)
author
David Schleef
<ds@wendolyne.(none)>
Wed, 25 Aug 2010 10:26:20 +0000
(
03:26
-0700)
committer
David Schleef
<ds@wendolyne.(none)>
Wed, 25 Aug 2010 10:26:40 +0000
(
03:26
-0700)
testsuite/show_parse.c
patch
|
blob
|
history
diff --git
a/testsuite/show_parse.c
b/testsuite/show_parse.c
index
655ff2d
..
45ee92d
100644
(file)
--- 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 {