diff options
author | Monty <monty@mariadb.org> | 2020-10-29 17:36:49 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-10-29 17:36:49 +0200 |
commit | 4c99e3e948dd14cfee9209e1a6274d94ecb5e22f (patch) | |
tree | 510d81bcd706092ec4ebaed30c5b53152b391fd0 | |
parent | 14798d3cd139430c1d23f14d810a27c5410f7161 (diff) | |
download | mariadb-git-4c99e3e948dd14cfee9209e1a6274d94ecb5e22f.tar.gz |
Fixed bug in detection of getgrouplist parameters.
On my system, OpenSuse, I got a compilation error that some arguments
to getgrouplist() where not initialized
-rw-r--r-- | plugin/auth_pam/CMakeLists.txt | 4 |
1 files 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 <grp.h> #include <unistd.h> 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; |