Date: Wed, 25 Nov 2009 04:35:54 +0000 (UTC) From: Garrett Wollman <wollman@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/stdio xprintf_time.c Message-ID: <200911250436.nAP4a9Qt000550@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wollman 2009-11-25 04:35:54 UTC
FreeBSD src repository
Modified files:
lib/libc/stdio xprintf_time.c
Log:
SVN rev 199783 on 2009-11-25 04:35:54Z by wollman
Make all three if conditions look similar by always initializing nsec
and moving the default initialization of prec into the else clause.
The clang static analyzer erroneously thought that nsec can be used
uninitialized here; it was not actually possible, but better to make
the code clearer. (Clang can't know that sprintf() won't modify *pi
behind the scenes.)
Revision Changes Path
1.4 +2 -1 src/lib/libc/stdio/xprintf_time.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911250436.nAP4a9Qt000550>
