mirror of
https://github.com/openssl/openssl.git
synced 2025-03-19 19:50:42 +08:00
test: fix coverity 1338157: unchecked return value
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14615)
This commit is contained in:
parent
3c4c8dd84a
commit
6a6844a219
@ -32,8 +32,8 @@ static int check_time(long offset)
|
||||
OPENSSL_gmtime(&t2, &tm2);
|
||||
OPENSSL_gmtime(&t1, &tm1);
|
||||
o1 = tm1;
|
||||
OPENSSL_gmtime_adj(&tm1, 0, offset);
|
||||
if (!TEST_int_eq(tm1.tm_year, tm2.tm_year)
|
||||
if (!TEST_true(OPENSSL_gmtime_adj(&tm1, 0, offset))
|
||||
|| !TEST_int_eq(tm1.tm_year, tm2.tm_year)
|
||||
|| !TEST_int_eq(tm1.tm_mon, tm2.tm_mon)
|
||||
|| !TEST_int_eq(tm1.tm_mday, tm2.tm_mday)
|
||||
|| !TEST_int_eq(tm1.tm_hour, tm2.tm_hour)
|
||||
|
Loading…
x
Reference in New Issue
Block a user