diff --git a/lib/nss.c b/lib/nss.c index e6776fb1..b697f0a0 100644 --- a/lib/nss.c +++ b/lib/nss.c @@ -82,6 +82,7 @@ void nss_init(const char *nsswitch_path) { p++; if (*p != '\0') break; + p = NULL; } if (p == NULL) { goto null_subid;