diff options
Diffstat (limited to 'sbin/restore/dirs.c')
-rw-r--r-- | sbin/restore/dirs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c index f698e93..78a5ff3 100644 --- a/sbin/restore/dirs.c +++ b/sbin/restore/dirs.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: dirs.c,v 1.9 1997/06/18 06:28:46 charnier Exp $ */ #ifndef lint @@ -302,7 +302,7 @@ pathsearch(pathname) while (*path == '/') path++; dp = NULL; - while ((name = strsep(&path, "/")) != NULL && *name != NULL) { + while ((name = strsep(&path, "/")) != NULL && *name != '\0') { if ((dp = searchdir(ino, name)) == NULL) return (NULL); ino = dp->d_ino; |