Skip to content

Commit a4dae6c

Browse files
danbevMylesBorins
authored andcommitted
src: prefer false instead of bool zero
This commit updates node_crypto.cc VerifySpkac function to use false instead of 0 for its return bool value i. PR-URL: #20218 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent cd83df3 commit a4dae6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -5148,7 +5148,7 @@ void GetCurves(const FunctionCallbackInfo<Value>& args) {
51485148

51495149

51505150
bool VerifySpkac(const char* data, unsigned int len) {
5151-
bool i = 0;
5151+
bool i = false;
51525152
EVP_PKEY* pkey = nullptr;
51535153
NETSCAPE_SPKI* spki = nullptr;
51545154

0 commit comments

Comments
 (0)