From: Volker Lendecke Date: Tue, 22 May 2018 11:20:17 +0000 (+0200) Subject: audit_logging: Fix CID 1435739 Dereference null return value X-Git-Tag: ldb-1.4.0~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b013aa31bf8942fcc46f75d5ffdbcbebf8e7b1b;p=thirdparty%2Fsamba.git audit_logging: Fix CID 1435739 Dereference null return value Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/lib/audit_logging/tests/audit_logging_test.c b/lib/audit_logging/tests/audit_logging_test.c index 9ba71fb60d7..8385e9ce363 100644 --- a/lib/audit_logging/tests/audit_logging_test.c +++ b/lib/audit_logging/tests/audit_logging_test.c @@ -519,6 +519,7 @@ static void test_audit_get_timestamp(void **state) struct tm tz; c = strptime(c, " %Z", &tz); } + assert_non_null(c); assert_int_equal(0, strlen(c)); actual = mktime(&tm);