libstdio: fix uninitialized variable CID 174334

This commit is contained in:
Giacomo Tesio 2017-08-13 21:50:44 +02:00
parent 34e6b0adc2
commit 5f22403176
1 changed files with 1 additions and 0 deletions

View File

@ -471,6 +471,7 @@ ocvt_flt(FILE *f, va_list *args, int flags, int width, int precision,
eptr = nil;
echr = 'e';
fmt = afmt;
exponent = 0;
d = va_arg(*args, double);
if(precision < 0) precision = 6;
switch(fmt){