This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] printf-parsemb.c initialization fix


Hi,

in function __parse_one_specwc/__parse_one_specmb one element of
the printf_spec struct will currently not be initialized (info.extra).

As result, sometimes the printf output looks not like the expected
one. Marcus Meissner found this, the proposed fix is:

--- glibc/stdio-common/printf-parsemb.c 2004-06-29 06:41:04.191229619 -0700
+++ glibc/stdio-common/printf-parsemb.c.fix     2004-06-29 06:40:59.755513126
+-0700
@@ -104,6 +104,7 @@
   spec->info.showsign = 0;
   spec->info.group = 0;
   spec->info.i18n = 0;
+  spec->info.extra = 0;
   spec->info.pad = ' ';
   spec->info.wide = sizeof (UCHAR_T) > 1;


-- 
Thorsten Kukuk       http://www.suse.de/~kukuk/        kukuk@suse.de
SuSE Linux AG        Maxfeldstr. 5                 D-90409 Nuernberg
--------------------------------------------------------------------    
Key fingerprint = A368 676B 5E1B 3E46 CFCE  2D97 F8FD 4E23 56C6 FB4B


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]