Skip to content

Commit

Permalink
use nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Sep 27, 2024
1 parent fb4a207 commit 53808eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/key_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ TEST_CASE("keychain", "[key]") {
char *pem = nullptr;
size_t pem_len = 0;
CHECK(pub->to_pem(pub, &pem, &pem_len) == 0);
CHECK(pem != NULL);
CHECK(pem != nullptr);
if (pem) {
CHECK_THAT(pem, Catch::Matchers::StartsWith("-----BEGIN PUBLIC KEY-----"));
std::cout << std::string(pem, pem_len) << std::endl;
Expand Down Expand Up @@ -398,7 +398,7 @@ TEST_CASE("keychain-manual", "[.]") {
char *pem = nullptr;
size_t pem_len = 0;
CHECK(pub->to_pem(pub, &pem, &pem_len) == 0);
CHECK(pem != NULL);
CHECK(pem != nullptr);
if (pem) {
CHECK_THAT(pem, Catch::Matchers::StartsWith("-----BEGIN PUBLIC KEY-----"));
std::cout << std::string(pem, pem_len) << std::endl;
Expand Down

0 comments on commit 53808eb

Please sign in to comment.