Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix lint error with NULL vs nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Apr 10, 2019
1 parent ee2c685 commit 5a79cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/initialize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class LibraryInitializer {
dmlc::InitLogging("mxnet");
#if MXNET_USE_SIGNAL_HANDLER && DMLC_LOG_STACK_TRACE
struct sigaction sa;
sigaction(SIGSEGV, NULL, &sa);
if (sa.sa_handler == NULL) {
sigaction(SIGSEGV, nullptr, &sa);
if (sa.sa_handler == nullptr) {
signal(SIGSEGV, SegfaultLogger);
}
#endif
Expand Down

0 comments on commit 5a79cda

Please sign in to comment.