- Check for NULL in case fattr_frompath fails.

This commit is contained in:
Ulf Lilleengen 2009-01-02 12:35:01 +00:00
parent abb23cb1af
commit d8c0b9ac9f

View File

@ -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.