]> git.ipfire.org Git - thirdparty/krb5.git/commit
Always set appdefault_get() output argument 721/head
authorNehal J Wani <nehaljw.kkd1@gmail.com>
Sun, 28 Jan 2018 08:02:57 +0000 (03:02 -0500)
committerGreg Hudson <ghudson@mit.edu>
Tue, 30 Jan 2018 18:07:54 +0000 (13:07 -0500)
commit364c608911af2f227695bb527d4e42f091ee8bd3
treed1d1e3241d5a643f88f02fdb0e72f20b38f21000
parent736e196c939be15b77436b67c28c7f0083bb7d5c
Always set appdefault_get() output argument

gcc 7 cannot determine that appdefault_get() always sets *ret_value
when it returns zero, so issues a "may be used uninitialized" warning
in its caller.  Set *ret_value at the beginning of the function body
in accordance with current practices.

[ghudson@mit.edu: clarified commit message]

ticket: 8639 (new)
tags: pullup
target_version: 1.16-next
target_version: 1.15-next
src/lib/krb5/krb/appdefault.c