From 4571a49b3f5185d92cbeeaea81f6fbe4e7d03cb0 Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 18 Jan 2023 11:29:40 -0800 Subject: [PATCH] static analyzer vs symbols.c This will probably shut up the static analyzer's exceedingly verbose complaint for symbols.c. --- src/symbols.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/symbols.c b/src/symbols.c index e35b41703..dde3f9e01 100644 --- a/src/symbols.c +++ b/src/symbols.c @@ -1126,6 +1126,7 @@ shuffle_customizations(void) for (i = 0; i < NUM_OBJECTS; i++) { duplicate[i] = -1; + tmp_u[i] = (struct unicode_representation *) 0; } for (i = 0; i < NUM_OBJECTS; i++) { int idx = objects[i].oc_descr_idx; @@ -1172,9 +1173,10 @@ find_matching_symset_customization( enum graphics_sets which_set) { struct symset_customization *gdc = &gs.sym_customizations[which_set]; + if ((gdc->custtype == custtype) && (strcmp(customization_name, gdc->customization_name) != 0)) - return gdc->details; + return gdc->details; return (struct customization_detail *) 0; }