@@ -175,7 +175,6 @@ int get_template (char *buf, SStrInfo *str_info) {
175
175
if (!init_type_code_str_struct (& type_code_str )) {
176
176
goto get_template_err ;
177
177
}
178
- abbr_names = r_list_new ();
179
178
180
179
// get/copy template len/name
181
180
len += (tmp - buf + 1 );
@@ -244,7 +243,7 @@ int get_namespace_and_name( char *buf, STypeCodeStr *type_code_str,
244
243
245
244
int len = 0 , read_len = 0 , tmp_len = 0 ;
246
245
247
- names_l = r_list_new ();
246
+ names_l = r_list_new ();
248
247
249
248
#define SET_OPERATOR_CODE (str ) { \
250
249
str_info = (SStrInfo *) malloc (sizeof(SStrInfo)); \
@@ -1303,7 +1302,7 @@ static EDemanglerErr parse_microsoft_mangled_name(char *sym, char **demangled_na
1303
1302
curr_pos += i ;
1304
1303
}
1305
1304
1306
- func_args = r_list_new ();
1305
+ func_args = r_list_new ();
1307
1306
1308
1307
// Function arguments
1309
1308
while (* curr_pos && * curr_pos != 'Z' )
@@ -1337,7 +1336,7 @@ static EDemanglerErr parse_microsoft_mangled_name(char *sym, char **demangled_na
1337
1336
1338
1337
r_list_append (func_args , str_arg );
1339
1338
1340
- if (strncmp (tmp , "void" , 4 ) == 0 ) {
1339
+ if (strncmp (tmp , "void" , 4 ) == 0 && strlen ( tmp ) == 4 ) {
1341
1340
// arguments list is void
1342
1341
if (!is_abbr_type ) {
1343
1342
R_FREE (tmp );
0 commit comments