diff options
author | Lei Zhang <thestig@chromium.org> | 2015-12-14 18:34:00 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-12-14 18:34:00 -0800 |
commit | 412e908082a361d0fd9591eab939e96a882212f1 (patch) | |
tree | 11726052ae08f13dc5a05a82cbce870758580aeb /core/src/fdrm/crypto | |
parent | 96660d6f382204339d6b1aadc3913303d436e252 (diff) | |
download | pdfium-412e908082a361d0fd9591eab939e96a882212f1.tar.xz |
Merge to XFA: Get rid of most instance of 'foo == NULL'
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1520063002 .
(cherry picked from commit e385244f8cd6ae376f6b3cf1265a0795d5d30eff)
Review URL: https://codereview.chromium.org/1528763003 .
Diffstat (limited to 'core/src/fdrm/crypto')
-rw-r--r-- | core/src/fdrm/crypto/fx_crypt_sha.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fdrm/crypto/fx_crypt_sha.cpp b/core/src/fdrm/crypto/fx_crypt_sha.cpp index ecefdde05a..c7d171098b 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; |