opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit 22370cb3e35eca03455a38284c70ad1ad4eb2f4b
parent 5dc1cdecb149196c944c3a0983051eeae6c2b3a0
Author: Duncan Overbruck <mail@duncano.de>
Date:   Fri,  6 Dec 2019 02:44:46 +0100

doas.c: initialize mygetpwuid_r result

This can't happen really happen, but makes scan-build happy.

Diffstat:
Mdoas.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/doas.c b/doas.c @@ -205,6 +205,8 @@ mygetpwuid_r(uid_t uid, struct passwd *pwd, struct passwd **result) static long pwsz = 0; size_t buflen; + *result = NULL; + if (pwsz == 0) pwsz = sysconf(_SC_GETPW_R_SIZE_MAX);