From 1f0d13b901887129fbea47a7d3996e075615d643 Mon Sep 17 00:00:00 2001 From: Bjoern Sikora Date: Mon, 21 Sep 2009 11:32:37 +0200 Subject: [PATCH] Bugfix: Don't test for NULL pointer of fixed sized character array. --- src/util.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 96cd7e7..c3132bd 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -56,7 +56,7 @@ std::string compute_md5_digest(std::string data) throw (std::invalid_argument) EVP_DigestFinal_ex(&mdctx, md_value, &md_len); // Test if md_value is filled correctly and md_len is not zero. - if ( (md_len == 0) || (md_value == NULL) || (EVP_MD_CTX_size(&mdctx) == 0) ) + if ( (md_len == 0) || (EVP_MD_CTX_size(&mdctx) == 0) ) throw std::invalid_argument("Retrieved invalid digest value"); // Internal cleanup of the digest content. -- 1.7.1