Browse Source

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

Douglas William Thrift 14 năm trước cách đây
mục cha
commit
6d57dbe60c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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");