Browse Source

[master] Changed NULL to 0 for FreeBSD build

Francis Dupont 8 years ago
parent
commit
d7abfb58a0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/config/tests/command_mgr_unittests.cc

+ 2 - 2
src/lib/config/tests/command_mgr_unittests.cc

@@ -232,8 +232,8 @@ TEST_F(CommandMgrTest, handlerInstall) {
 
     // Check that it's not allowed to install NULL pointer instead of a real
     // command.
-    EXPECT_THROW(CommandMgr::instance().registerCommand("my-command",
-                 NULL), InvalidCommandHandler);
+    EXPECT_THROW(CommandMgr::instance().registerCommand("my-command", 0),
+                 InvalidCommandHandler);
 
     // This registration should succeed.
     EXPECT_NO_THROW(CommandMgr::instance().registerCommand("my-command",