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.
This commit is contained in:
Sybren A. Stüvel 2020-04-03 11:33:21 +02:00
parent fe7ea8a24c
commit cecb25273e
1 changed files with 1 additions and 1 deletions

View File

@ -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;