Browse Source

CLang++ doesn't seem to want to work correctly with ?: that way!

Douglas William Thrift 13 years ago
parent
commit
6d57dbe60c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dtpstree.cpp

+ 1 - 1
dtpstree.cpp

@@ -967,7 +967,7 @@ static uint16_t options(int argc, char *argv[], pid_t &hpid, pid_t &pid, char *&
 			break;
 		case 'V':
 			{
-				std::string version(optarg ?: "");
+				std::string version(optarg ? optarg : "");
 
 				if (version == "s" || version == "short")
 					std::printf(PACKAGE_TARNAME " " PACKAGE_VERSION "\n");