about summary refs log tree commit diff
path: root/src/compat/pam_misc_drop_env.c
blob: a8a7564a7a13824d06f634e42f17582ef5d8463b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* ISC license. */

#include <stdlib.h>
#include <pamela/compat.h>

static inline void env_free (char **envp)
{
  char **p = envp ;
  while (*p) free(*p++) ;
  free(envp) ;
}

char **pam_misc_drop_env (char **envp)
{
  env_free(envp) ;
  return 0 ;
}