]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Protect uninitialized scalar variable from being accessed
authorPedro F. Giffuni <pfg@FreeBSD.org>
Sat, 7 Feb 2015 19:51:34 +0000 (19:51 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Sat, 7 Feb 2015 19:51:34 +0000 (19:51 +0000)
commiteb77fbdcec0b6f4bb396c0a8ce20f17687d1c7fa
treea9b2facb65624e9a2a39edfabc73aca2b1784cf2
parentd5a6319ac7849a7191e8b6b2b129400be89d032c
Protect uninitialized scalar variable from being accessed

In a couple of cases a variable "stayopen" can be checked
unitialized. This is of no danger as the complementary
condition is false but prevent the access by switching
the checks.

CID: 1018729
CID: 1018732
lib/libc/gen/getgrent.c
lib/libc/gen/getpwent.c