Avoid assignement in comparison.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 28 Dec 2007 00:04:46 +0000 (00:04 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 28 Dec 2007 00:04:46 +0000 (00:04 +0000)
libmisc/copydir.c

index 207d4d5e72919709d73d5080e0083904fd4c3028..1a93a93f4fd4b11e8d9e0c3e831f55ae97aa3f6e 100644 (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);
        }