summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getcap.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>2009-11-25 04:35:54 +0000
committerwollman <wollman@FreeBSD.org>2009-11-25 04:35:54 +0000
commit0bb16760a11c0384ebde0564be95b7c5711ce69e (patch)
tree00513fdd94aac916df0e6c0489245d8cda7940cb /lib/libc/gen/getcap.c
parentb15e7bd9790eb41e97bbef83cfa1f1d778e2e7e2 (diff)
downloadFreeBSD-src-0bb16760a11c0384ebde0564be95b7c5711ce69e.zip
FreeBSD-src-0bb16760a11c0384ebde0564be95b7c5711ce69e.tar.gz
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.)
Diffstat (limited to 'lib/libc/gen/getcap.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud