Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2023 04:18:35 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ea99922484b7 - stable/14 - strfmon: Silence scan-build warning
Message-ID:  <202312160418.3BG4IZhR059036@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=ea99922484b7435ac8001ebd13614006c734b924

commit ea99922484b7435ac8001ebd13614006c734b924
Author:     Jose Luis Duran <jlduran@gmail.com>
AuthorDate: 2023-11-30 23:30:50 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-12-16 04:17:51 +0000

    strfmon: Silence scan-build warning
    
    (cherry picked from commit 6abee52e0d79f68fd725de748d7027ca8eef2294)
---
 lib/libc/stdlib/strfmon.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/libc/stdlib/strfmon.c b/lib/libc/stdlib/strfmon.c
index b2d76fbed769..ade1deaffca9 100644
--- a/lib/libc/stdlib/strfmon.c
+++ b/lib/libc/stdlib/strfmon.c
@@ -156,7 +156,6 @@ vstrfmon_l(char * __restrict s, size_t maxsize, locale_t loc,
 		left_prec = -1;		/* no left precision specified */
 		right_prec = -1;	/* no right precision specified */
 		width = -1;		/* no width specified */
-		value = 0;		/* we have no value to print now */
 
 		/* Flags */
 		while (1) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202312160418.3BG4IZhR059036>