We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2ab70 commit c2caba9Copy full SHA for c2caba9
1 file changed
src/crypto/crypto_common.cc
@@ -431,11 +431,8 @@ void AddFingerprintDigest(
431
fingerprint[(3*i)+2] = ':';
432
}
433
434
- if (md_size > 0) {
435
- fingerprint[(3*(md_size-1))+2] = '\0';
436
- } else {
437
- fingerprint[0] = '\0';
438
- }
+ DCHECK_GT(md_size, 0);
+ fingerprint[(3 * (md_size - 1)) + 2] = '\0';
439
440
441
template <const char* (*nid2string)(int nid)>
0 commit comments