From cecb25273ec6f473d3f8ae0b201e17a77225dd93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 3 Apr 2020 11:33:21 +0200 Subject: Cleanup: Font, added initialisation for two variables My compiler (GCC 7.5.0) was warning about these variables potentially not being initialised. Since the function is highly complex, instead of analysing it I just trust my compiler and added initial values. This should be no functional change. --- source/blender/blenkernel/intern/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenkernel/intern/font.c') diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index e25603e0af5..a4da7ceb861 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -734,7 +734,7 @@ static bool vfont_to_curve(Object *ob, float twidth = 0, maxlen = 0; int i, slen, j; int curbox; - int selstart, selend; + int selstart = 0, selend = 0; int cnr = 0, lnr = 0, wsnr = 0; const char32_t *mem = NULL; char32_t ascii; -- cgit v1.2.3