diff options
author | lulf <lulf@FreeBSD.org> | 2009-01-02 12:35:01 +0000 |
---|---|---|
committer | lulf <lulf@FreeBSD.org> | 2009-01-02 12:35:01 +0000 |
commit | f4ac6e730587c4e9da9fc11c6f7517331caa6b02 (patch) | |
tree | a4466050b067e115f9b3deb75b2e108dea8dcb1b /contrib/csup | |
parent | 306c871b2f4122371e91ff3b93e4c9b731b7f1bf (diff) | |
download | FreeBSD-src-f4ac6e730587c4e9da9fc11c6f7517331caa6b02.zip FreeBSD-src-f4ac6e730587c4e9da9fc11c6f7517331caa6b02.tar.gz |
- Check for NULL in case fattr_frompath fails.
Diffstat (limited to 'contrib/csup')
-rw-r--r-- | contrib/csup/lister.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/csup/lister.c b/contrib/csup/lister.c index 27fae2d..b10dbd3 100644 --- a/contrib/csup/lister.c +++ b/contrib/csup/lister.c @@ -434,7 +434,7 @@ lister_dorcsfile(struct lister *l, struct coll *coll, struct statusrec *sr) free(path); } else fa = sr->sr_clientattr; - if (fattr_equal(fa, sr->sr_clientattr)) { + if (fa != NULL && fattr_equal(fa, sr->sr_clientattr)) { /* * If the file is an RCS file, we use "loose" equality, so sizes * may disagress because of differences in whitespace. |