about summary refs log tree commit diff
path: root/stdlib/strfmon_l.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-08-04 21:40:51 +0000
committerUlrich Drepper <drepper@redhat.com>2004-08-04 21:40:51 +0000
commit01f7e9281469ade588b61111eac9911d9a48a1ff (patch)
tree1562115644a77e59c1e9a61918e8522aa90a8788 /stdlib/strfmon_l.c
parentb3e46788ef736c4f202536d70a7a2962fbcf933e (diff)
downloadglibc-01f7e9281469ade588b61111eac9911d9a48a1ff.tar.gz
glibc-01f7e9281469ade588b61111eac9911d9a48a1ff.tar.xz
glibc-01f7e9281469ade588b61111eac9911d9a48a1ff.zip
(__vstrfmon_l): Memset whole info structure instead of trying to initialize some, but not all, fields one by one.
Diffstat (limited to 'stdlib/strfmon_l.c')
-rw-r--r--stdlib/strfmon_l.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/stdlib/strfmon_l.c b/stdlib/strfmon_l.c
index 90076afc45..58dab340cf 100644
--- a/stdlib/strfmon_l.c
+++ b/stdlib/strfmon_l.c
@@ -543,20 +543,14 @@ __vstrfmon_l (char *s, size_t maxsize, __locale_t loc, const char *format,
 	 the numeric representation is too long.  */
       s[maxsize - 1] = '\0';
 
+      memset (&info, '\0', sizeof (info));
       info.prec = right_prec;
       info.width = left_prec + (right_prec ? (right_prec + 1) : 0);
       info.spec = 'f';
       info.is_long_double = is_long_double;
-      info.is_short = 0;
-      info.is_long = 0;
-      info.alt = 0;
-      info.space = 0;
-      info.left = 0;
-      info.showsign = 0;
       info.group = group;
       info.pad = pad;
       info.extra = 1;		/* This means use values from LC_MONETARY.  */
-      info.wide = 0;
 
       ptr = &fpnum;
       done = __printf_fp ((FILE *) &f, &info, &ptr);