Skip to content

Commit bc020f4

Browse files
committed
sudoers_init: ret still needs to be static
Otherwise, sudoers_init() will return -1 even if it has successfully initialized earlier.
1 parent 353df39 commit bc020f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/sudoers/sudoers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ sudoers_init(void *info, sudoers_logger_t logger, char * const envp[])
186186
{
187187
struct sudo_nss *nss, *nss_next;
188188
int oldlocale, sources = 0;
189-
int ret = -1;
189+
static int ret = -1;
190190
debug_decl(sudoers_init, SUDOERS_DEBUG_PLUGIN);
191191

192192
/* Only attempt to initialize once. */

0 commit comments

Comments
 (0)