From 4c99e3e948dd14cfee9209e1a6274d94ecb5e22f Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 29 Oct 2020 17:36:49 +0200 Subject: [PATCH] Fixed bug in detection of getgrouplist parameters. On my system, OpenSuse, I got a compilation error that some arguments to getgrouplist() where not initialized --- plugin/auth_pam/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/auth_pam/CMakeLists.txt b/plugin/auth_pam/CMakeLists.txt index ff7ba4a4f68..740aedeb7d9 100644 --- a/plugin/auth_pam/CMakeLists.txt +++ b/plugin/auth_pam/CMakeLists.txt @@ -14,8 +14,8 @@ CHECK_C_SOURCE_COMPILES( #include #include int main() { - char *arg_1; - gid_t arg_2, arg_3; + char *arg_1= 0; + gid_t arg_2=0, arg_3; int arg_4; (void)getgrouplist(arg_1,arg_2,&arg_3,&arg_4); return 0;