Print this page
12826 update to smatch 0.6.1-rc1-il-6

*** 2717,2728 **** if (strcmp(state_name, param_name) == 0) { snprintf(buf, sizeof(buf), "%.*s$", star_cnt, "**********"); return alloc_sname(buf); } ! if (state_name[name_len] == '-' && /* check for '-' from "->" */ ! strncmp(state_name, param_name, name_len) == 0) { snprintf(buf, sizeof(buf), "%.*s$%s", star_cnt, "**********", state_name + name_len); return alloc_sname(buf); } return NULL; } --- 2717,2729 ---- if (strcmp(state_name, param_name) == 0) { snprintf(buf, sizeof(buf), "%.*s$", star_cnt, "**********"); return alloc_sname(buf); } ! /* check for '-' from "->" */ ! if (strncmp(state_name, param_name, name_len) == 0 && ! state_name[name_len] == '-') { snprintf(buf, sizeof(buf), "%.*s$%s", star_cnt, "**********", state_name + name_len); return alloc_sname(buf); } return NULL; }