You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/02/02 17:55:00 UTC

[2/4] mesos git commit: Fixed a minor bug in stout's Flags package.

Fixed a minor bug in stout's Flags package.

Unintended inequality comparison between pointer value and 0.

Review: https://reviews.apache.org/r/42972/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/79782ce9
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/79782ce9
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/79782ce9

Branch: refs/heads/master
Commit: 79782ce9449f19bbb38b4a553773460e1f866c5a
Parents: db3d10f
Author: Neil Conway <ne...@gmail.com>
Authored: Tue Feb 2 08:54:41 2016 -0800
Committer: Jie Yu <yu...@gmail.com>
Committed: Tue Feb 2 08:54:41 2016 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/flags/flags.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/79782ce9/3rdparty/libprocess/3rdparty/stout/include/stout/flags/flags.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/flags/flags.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/flags/flags.hpp
index 2a18845..96ffc42 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/flags/flags.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/flags/flags.hpp
@@ -621,7 +621,7 @@ inline Try<Nothing> FlagsBase::load(
   }
 
   // Grab the program name from argv, without removing it.
-  programName_ = argc > 0 ? Path(*(argv[0])).basename() : "";
+  programName_ = *argc > 0 ? Path(*(argv[0])).basename() : "";
 
   // Keep the arguments that are not being processed as flags.
   std::vector<char*> args;