diff options
Diffstat (limited to 'tests/tst-pam_getenvlist.c')
-rw-r--r-- | tests/tst-pam_getenvlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tst-pam_getenvlist.c b/tests/tst-pam_getenvlist.c index a1184f1a..4e90c0ca 100644 --- a/tests/tst-pam_getenvlist.c +++ b/tests/tst-pam_getenvlist.c @@ -31,9 +31,7 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif #include <stdio.h> #include <unistd.h> @@ -78,7 +76,7 @@ main (void) { fprintf (stderr, "pam_getenvlist (pamh) does not return pointer to NULL\n"); - temp = *ptr; + temp = ptr ? *ptr : NULL; var = 0; while (temp) { @@ -130,5 +128,7 @@ main (void) free (ptr); } + pam_end (pamh, retval); + return 0; } |