From: Coverity Build Date: Thu, 3 Dec 2015 10:00:58 +0000 (-0800) Subject: CID 1341533: Missing assertion in sntp/tests/t-log.c. HStenn. X-Git-Tag: NTP_4_3_86~3^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9147b2588dc7953babd9d08b835f158a1404fdf;p=thirdparty%2Fntp.git CID 1341533: Missing assertion in sntp/tests/t-log.c. HStenn. bk: 566012dajEfgn2nXTA0GsbIrs6d-4g --- diff --git a/ChangeLog b/ChangeLog index a2671afca..8cbc02f03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * [Sec 2956] small-step/big-step. Close the panic gate earlier. HStenn. * CID 1339955: Free allocated memory in caljulian test. HStenn. * CID 1339962: Explicitly initialize variable in caljulian test. HStenn. +* CID 1341533: Missing assertion in sntp/tests/t-log.c. HStenn. * CID 1341534: Resource leak in tests/ntpd/t-ntp_signd.c. HStenn. * CID 1341535: Resource leak in tests/ntpd/t-ntp_signd.c. HStenn. * CID 1341536: Resource leak in tests/ntpd/t-ntp_signd.c. HStenn. diff --git a/sntp/tests/t-log.c b/sntp/tests/t-log.c index 6975b1a21..7f8fadbe0 100644 --- a/sntp/tests/t-log.c +++ b/sntp/tests/t-log.c @@ -64,6 +64,8 @@ testWriteInCustomLogfile(void) FILE * f = fopen("testLogfile2.log","r"); char line[256]; + TEST_ASSERT_TRUE( f != NULL); + //should be only 1 line while (fgets(line, sizeof(line), f)) { printf("%s", line);