const char *

This commit is contained in:
c9s 2014-05-27 01:08:31 +08:00
parent 9f8176447b
commit 6cc57d545f

View file

@ -25,7 +25,7 @@
edge * r3_edge_create(const char * pattern, int pattern_len, node * child) { edge * r3_edge_create(const char * pattern, int pattern_len, node * child) {
edge * e = (edge*) zmalloc( sizeof(edge) ); edge * e = (edge*) zmalloc( sizeof(edge) );
e->pattern = pattern; e->pattern = (char*) pattern;
e->pattern_len = pattern_len; e->pattern_len = pattern_len;
e->opcode = 0; e->opcode = 0;
e->child = child; e->child = child;