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 authored and sam-github committed Feb 14, 2017
1 parent 6d0ce65 commit 129be41
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 @@ -715,7 +715,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 129be41

Please sign in to comment.