From: Dmitry Volyntsev Date: Mon, 11 Nov 2019 12:37:39 +0000 (+0300) Subject: Fixed a dead store. X-Git-Url: http://git.kaiwu.me/sitemap.xml?a=commitdiff_plain;h=9e2ea39bbf97fe9b4cd8e59f96b241d83905e89d;p=njs.git Fixed a dead store. Found by Clang static analyzer. --- diff --git a/src/njs_date.c b/src/njs_date.c index 14b7cace..05b0f197 100644 --- a/src/njs_date.c +++ b/src/njs_date.c @@ -207,7 +207,6 @@ njs_year_from_days(int64_t *days) if (d1 < 0) { y--; - d1 += njs_days_in_year(y); } else { nd = njs_days_in_year(y); @@ -216,7 +215,6 @@ njs_year_from_days(int64_t *days) break; } - d1 -= nd; y++; } }