From 51a4ae657661ae7d820187bb03a34e106da89e4f Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sat, 19 Nov 2011 13:23:16 +0000 Subject: [PATCH] backport the line from trunk and fix uninitialized variables --- ext/mbstring/oniguruma/regparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/mbstring/oniguruma/regparse.c b/ext/mbstring/oniguruma/regparse.c index af5c8593e6ea0..abf2cc1cb5a8d 100644 --- a/ext/mbstring/oniguruma/regparse.c +++ b/ext/mbstring/oniguruma/regparse.c @@ -4980,6 +4980,7 @@ parse_exp(Node** np, OnigToken* tok, int term, CCLASS_SET_SHARE(&(NCCLASS(*np))); new_key = (type_cclass_key* )xmalloc(sizeof(type_cclass_key)); + xmemcpy(new_key, &key, sizeof(type_cclass_key)); onig_st_add_direct(OnigTypeCClassTable, (st_data_t )new_key, (st_data_t )*np);