From owner-cvs-src-old@FreeBSD.ORG Wed Nov 25 04:36:09 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F69710656C0 for ; Wed, 25 Nov 2009 04:36:09 +0000 (UTC) (envelope-from wollman@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5DFE88FC15 for ; Wed, 25 Nov 2009 04:36:09 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nAP4a9ZG000551 for ; Wed, 25 Nov 2009 04:36:09 GMT (envelope-from wollman@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nAP4a9Qt000550 for cvs-src-old@freebsd.org; Wed, 25 Nov 2009 04:36:09 GMT (envelope-from wollman@repoman.freebsd.org) Message-Id: <200911250436.nAP4a9Qt000550@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to wollman@repoman.freebsd.org using -f From: Garrett Wollman Date: Wed, 25 Nov 2009 04:35:54 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdio xprintf_time.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2009 04:36:09 -0000 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