--- embedaddon/sudo/compat/pw_dup.c 2012/05/29 12:26:49 1.1.1.1 +++ embedaddon/sudo/compat/pw_dup.c 2013/10/14 07:56:33 1.1.1.3 @@ -1,5 +1,6 @@ /* - * Copyright (c) 2000, 2002, 2012 Todd C. Miller + * Copyright (c) 2000, 2002, 2012-2013 + * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -20,6 +21,8 @@ #include +#ifndef HAVE_PW_DUP + #include #include @@ -64,7 +67,7 @@ pw_dup(const struct passwd *pw) { size_t nsize = 0, psize = 0, gsize = 0, dsize = 0, ssize = 0, total; #ifdef HAVE_LOGIN_CAP_H - size_t csize; + size_t csize = 0; #endif struct passwd *newpw; char *cp; @@ -102,3 +105,4 @@ pw_dup(const struct passwd *pw) return newpw; } +#endif /* HAVE_PW_DUP */