From: nekral-guest Date: Fri, 28 Dec 2007 00:04:46 +0000 (+0000) Subject: Avoid assignement in comparison. X-Git-Tag: 4.1.1~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed1dd1bb99a618833d530681a3747ec709de68be;p=shadow Avoid assignement in comparison. --- diff --git a/libmisc/copydir.c b/libmisc/copydir.c index 207d4d5e..1a93a93f 100644 --- a/libmisc/copydir.c +++ b/libmisc/copydir.c @@ -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); }