Skip to content

Commit 4c99e3e

Browse files
committed
Fixed bug in detection of getgrouplist parameters.
On my system, OpenSuse, I got a compilation error that some arguments to getgrouplist() where not initialized
1 parent 14798d3 commit 4c99e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/auth_pam/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ CHECK_C_SOURCE_COMPILES(
1414
#include <grp.h>
1515
#include <unistd.h>
1616
int main() {
17-
char *arg_1;
18-
gid_t arg_2, arg_3;
17+
char *arg_1= 0;
18+
gid_t arg_2=0, arg_3;
1919
int arg_4;
2020
(void)getgrouplist(arg_1,arg_2,&arg_3,&arg_4);
2121
return 0;

0 commit comments

Comments
 (0)