Skip to content

Commit

Permalink
src: prefer false instead of bool zero
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
danbev authored and MylesBorins committed May 4, 2018
1 parent cd83df3 commit a4dae6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5148,7 +5148,7 @@ void GetCurves(const FunctionCallbackInfo<Value>& args) {


bool VerifySpkac(const char* data, unsigned int len) {
bool i = 0;
bool i = false;
EVP_PKEY* pkey = nullptr;
NETSCAPE_SPKI* spki = nullptr;

Expand Down

0 comments on commit a4dae6c

Please sign in to comment.