From d78e027808deb6aef4e65338d160986d7e576a90 Mon Sep 17 00:00:00 2001 From: jbj Date: Thu, 3 May 2001 21:00:18 +0000 Subject: - still more boring lclint annotations and fiddles. CVS patchset: 4738 CVS date: 2001/05/03 21:00:18 --- lib/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/fs.c') diff --git a/lib/fs.c b/lib/fs.c index d7e2ec6f0..2734e220c 100644 --- a/lib/fs.c +++ b/lib/fs.c @@ -305,7 +305,7 @@ int rpmGetFilesystemUsage(const char ** fileList, int_32 * fssizes, int numFiles if (lastDev != sb.st_dev) { for (j = 0; j < numFilesystems; j++) - if (filesystems[j].dev == sb.st_dev) break; + if (filesystems && filesystems[j].dev == sb.st_dev) break; if (j == numFilesystems) { rpmError(RPMERR_BADDEV, -- cgit v1.2.3