Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1622)

Unified Diff: core/src/fdrm/crypto/fx_crypt_sha.cpp

Issue 1520063002: Get rid of most instance of 'foo == NULL' (Closed) Base URL: https://pdfium.googlesource.com/pdfium@bstr_isnull
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/include/fxcrt/fx_basic.h ('k') | core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fdrm/crypto/fx_crypt_sha.cpp
diff --git a/core/src/fdrm/crypto/fx_crypt_sha.cpp b/core/src/fdrm/crypto/fx_crypt_sha.cpp
index ecefdde05a8675aff0cf67f29927ce4626bd58ff..c7d171098bd3e38a5aa9b274928d481d3d2af708 100644
--- a/core/src/fdrm/crypto/fx_crypt_sha.cpp
+++ b/core/src/fdrm/crypto/fx_crypt_sha.cpp
@@ -390,7 +390,7 @@ uint64_t FX_ato64i(const FX_CHAR* str) {
return ret;
}
void CRYPT_SHA384Start(void* context) {
- if (context == NULL) {
+ if (!context) {
return;
}
sha384_context* ctx = (sha384_context*)context;
@@ -604,7 +604,7 @@ void CRYPT_SHA384Generate(const uint8_t* data,
CRYPT_SHA384Finish(&context, digest);
}
void CRYPT_SHA512Start(void* context) {
- if (context == NULL) {
+ if (!context) {
return;
}
sha384_context* ctx = (sha384_context*)context;
« no previous file with comments | « core/include/fxcrt/fx_basic.h ('k') | core/src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698