Remove warnings from clang --analyze

This commit is contained in:
Zhi Guan
2024-06-18 09:25:52 +08:00
parent f11be42de7
commit 5821f2041d
5 changed files with 4 additions and 8 deletions

View File

@@ -1535,7 +1535,7 @@ int asn1_time_from_str(int utc_time, time_t *timestamp, const char *str)
day = val(p[0]) * 10 + val(p[1]); p += 2;
hour = val(p[0]) * 10 + val(p[1]); p += 2;
minute = val(p[0]) * 10 + val(p[1]); p += 2;
second = val(p[0]) * 10 + val(p[1]); p += 2;
second = val(p[0]) * 10 + val(p[1]);
if (year < 1970
|| month < 1 || month > 12