audit_logging: Fix CID 1435739 Dereference null return value
[samba.git] / lib / audit_logging / tests / audit_logging_test.c
index 9ba71fb60d74342c927b32fde7300fd295751f12..8385e9ce3637bebc324a1b66535c3a6bd2bb1611 100644 (file)
@@ -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);