diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-09-18 06:59:04 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-09-18 06:59:04 +0000 |
commit | efda955718c8105557e54076b257544449e44c20 (patch) | |
tree | ac8ffb0b9f000778f02d1f7e956c863cd22708e2 /sbin/fsck_msdos | |
parent | e76f1f5eaa3b73768556795a0dd11f07f3e5b14a (diff) |
"prs are sometimes wrong" (theo)
fix wrong fix. "kak v zadnitsu kol, russkiy rock-n-roll" (4epHeuKuu)
Diffstat (limited to 'sbin/fsck_msdos')
-rw-r--r-- | sbin/fsck_msdos/dir.c | 6 |
1 files 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 <stdio.h> @@ -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; } |