aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/tst-pam_getenvlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tst-pam_getenvlist.c b/tests/tst-pam_getenvlist.c
index 62aea061..d6abac91 100644
--- a/tests/tst-pam_getenvlist.c
+++ b/tests/tst-pam_getenvlist.c
@@ -78,7 +78,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)
{