Bruno Haible writes:
> It was introduced in commit 7d8705539af0c8555badacbdbe9c92ae0abca6f5.
> Probably I thought that the uninitialized value doesn't matter, since in this
> line it gets multiplied by 0, and 0 * anything is 0. But valgrind reports
> an "uninitialised value" in such a case. There
Hi Collin,
> ./vasnprintf.c:6203:49: warning: variable 'thousep_len' is used
> uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
> 6203 | if ((flags &
> FLAG_GROUP) && (intpart_digits > 1))
> |
Message-ID: <27045298b98c7fd07c848326af3556971c48d264.1748398997.git.collin.fu...@gmail.com>
From: Collin Funk
Date: Tue, 27 May 2025 19:07:10 -0700
Subject: [PATCH] vasnprintf: Fix uninitialized values.
* lib/vasnprintf.c (VASNPRINFT): Initialize all occurrences of
thousep_len to zero.
-