From 1481aabb49a03d4fdda9e1ad539098d06e5c29ab Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Wed, 10 Dec 2003 07:46:34 +0000 Subject: fix NULL/0 mixup --- sys/msdosfs/msdosfs_fat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/msdosfs/msdosfs_fat.c') 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; } -- cgit v1.2.3