(__path_search): Add second part of the patch.
authordrepper <drepper>
Tue, 15 Dec 1998 09:30:11 +0000 (09:30 +0000)
committerdrepper <drepper>
Tue, 15 Dec 1998 09:30:11 +0000 (09:30 +0000)
sysdeps/posix/tempname.c

index 5b6134c..c3dbf52 100644 (file)
@@ -68,6 +68,8 @@ __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
        dir = d;
       else if (dir != NULL && direxists (dir))
        /* nothing */ ;
+      else
+       dir = NULL;
     }
   if (dir != NULL)
     {