From 73d2aa205ee4b8f17e058e2746cd841a28fbb7b0 Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 18 Sep 1996 06:59:03 +0000 Subject: [PATCH] "prs are sometimes wrong" (theo) fix wrong fix. "kak v zadnitsu kol, russkiy rock-n-roll" (4epHeuKuu) --- sbin/fsck_msdos/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/fsck_msdos/dir.c b/sbin/fsck_msdos/dir.c index 916e6fb0737..7a6133706a5 100644 --- a/sbin/fsck_msdos/dir.c +++ b/sbin/fsck_msdos/dir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.4 1996/09/17 19:31:18 deraadt Exp $ */ +/* $OpenBSD: dir.c,v 1.5 1996/09/18 06:59:03 mickey Exp $ */ /* $NetBSD: dir.c,v 1.1.4.1 1996/05/31 18:41:38 jtc Exp $ */ /* @@ -37,7 +37,7 @@ #ifndef lint -static char rcsid[] = "$OpenBSD: dir.c,v 1.4 1996/09/17 19:31:18 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: dir.c,v 1.5 1996/09/18 06:59:03 mickey Exp $"; #endif /* not lint */ #include @@ -168,7 +168,7 @@ fullpath(dir) memcpy(cp, np, nl); *--cp = '/'; } while (dir = dir->parent); - if (dir) + if (dir != NULL && dir->parent != NULL) *--cp = '?'; return cp; } -- 2.20.1