From d0b659c455aeca4145d1d8190d48d0d27dbec353 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Wed, 30 Sep 2020 03:26:45 +0200 Subject: [PATCH] fix potential uninitialized rot, flip variables for text rotation in load_sym_def() --- src/save.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/save.c b/src/save.c index c56df49b..f8723a65 100644 --- a/src/save.c +++ b/src/save.c @@ -1802,6 +1802,7 @@ int load_sym_def(const char *name, FILE *embed_fd) &tt[i].flip, &tt[i].xscale, &tt[i].yscale); if (level>0) { const char* tmp = translate2(lcc, level, tt[i].txt_ptr); + rot = lcc[level].rot; flip = lcc[level].flip; /* >>>>> */ if (tmp) my_strdup(651, &tt[i].txt_ptr, tmp); ROTATION(0.0, 0.0, tt[i].x0, tt[i].y0, rx1, ry1); tt[i].x0 = lcc[level].x0 + rx1; tt[i].y0 = lcc[level].y0 + ry1;