diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-12-10 07:46:34 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2003-12-10 07:46:34 +0000 |
commit | 1481aabb49a03d4fdda9e1ad539098d06e5c29ab (patch) | |
tree | ac0a2eb016815d8857eb3da85ac2c9bd4f8ddfc8 | |
parent | 882a55de2fd002351474e9c0e86dbc6a6b57a222 (diff) |
fix NULL/0 mixup
-rw-r--r-- | sys/msdosfs/msdosfs_fat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c index eee28a18713..1975ee49df0 100644 --- a/sys/msdosfs/msdosfs_fat.c +++ b/sys/msdosfs/msdosfs_fat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_fat.c,v 1.13 2003/12/04 21:13:37 miod Exp $ */ +/* $OpenBSD: msdosfs_fat.c,v 1.14 2003/12/10 07:46:33 itojun Exp $ */ /* $NetBSD: msdosfs_fat.c,v 1.26 1997/10/17 11:24:02 ws Exp $ */ /*- @@ -708,7 +708,7 @@ chainlength(pmp, start, count) while (++idx <= max_idx) { if (len >= count) break; - if ((map = pmp->pm_inusemap[idx]) != NULL) { + if ((map = pmp->pm_inusemap[idx]) != 0) { len += ffs(map) - 1; break; } |