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
krb5_error_code retval;
const char * realmstr = realm?realm->data:NULL;
+ *ret_value = NULL;
+
if (!context || (context->magic != KV5M_CONTEXT))
return KV5M_CONTEXT;