瀏覽代碼

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

Douglas William Thrift 14 年之前
父節點
當前提交
6d57dbe60c
共有 1 個文件被更改,包括 1 次插入1 次删除
  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");