non-null arg.

This commit is contained in:
christos 2018-02-11 00:25:12 +00:00
parent 3752203969
commit d4a3515981

View File

@ -1,4 +1,4 @@
/* $NetBSD: pam_getenvlist.c,v 1.3 2017/05/06 19:50:10 christos Exp $ */
/* $NetBSD: pam_getenvlist.c,v 1.4 2018/02/11 00:25:12 christos Exp $ */
/*-
* Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@ -42,7 +42,7 @@
#endif
#include <sys/cdefs.h>
__RCSID("$NetBSD: pam_getenvlist.c,v 1.3 2017/05/06 19:50:10 christos Exp $");
__RCSID("$NetBSD: pam_getenvlist.c,v 1.4 2018/02/11 00:25:12 christos Exp $");
#include <stdlib.h>
#include <string.h>
@ -65,8 +65,10 @@ pam_getenvlist(pam_handle_t *pamh)
size_t i;
ENTER();
#ifdef notdef
if (pamh == NULL)
RETURNP(NULL);
#endif
envlist = malloc(sizeof(*envlist) * ((size_t)pamh->env_count + 1));
if (envlist == NULL) {
openpam_log(PAM_LOG_ERROR, "%s",