ICU-8718 Initialize UFieldPosition struct to avoid valgrind errors

X-SVN-Rev: 31413
This commit is contained in:
Michael Ow 2012-02-17 18:29:03 +00:00
parent f8869b1d10
commit ceb1f19712

View File

@ -6562,7 +6562,7 @@ NumberFormatTest::Test9087(void)
unum_setAttribute(fmt,UNUM_ROUNDING_MODE,UNUM_ROUND_HALFEVEN);
unum_setDoubleAttribute(fmt,UNUM_ROUNDING_INCREMENT,0);
UFieldPosition position;
UFieldPosition position = { 0, 0, 0};
unum_formatDouble(fmt,inf,outputbuf,50,&position,&status);
if ( u_strcmp(infstr, outputbuf)) {