Skip to content

Commit

Permalink
src: use ABORT() macro instead of abort()
Browse files Browse the repository at this point in the history
This makes sure that we dump a backtrace and use raise(SIGABRT) on
Windows.

PR-URL: nodejs#9613
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
evanlucas committed Nov 17, 2016
1 parent c5678d3 commit 21826ef
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 @@ -698,7 +698,7 @@ static X509_STORE* NewRootCertStore() {

if (x509 == nullptr) {
// Parse errors from the built-in roots are fatal.
abort();
ABORT();
return nullptr;
}

Expand Down

0 comments on commit 21826ef

Please sign in to comment.