Avoid assignement in comparison.

This commit is contained in:
nekral-guest 2007-12-28 00:04:46 +00:00
parent 6987e6f12a
commit ed1dd1bb99

View File

@ -416,7 +416,9 @@ static int copy_hardlink (const char *src, const char *dst,
if (unlink (src) != 0) {
return -1;
}
if (--lp->ln_count <= 0) {
lp->ln_count--;
if (lp->ln_count <= 0) {
remove_link (lp);
}