googletest: ansi color fix
Adds prevents from returning nullptr by choosing default color. Issue: #4321
This commit is contained in:
		@@ -3228,7 +3228,8 @@ static const char* GetAnsiColorCode(GTestColor color) {
 | 
			
		||||
    case GTestColor::kYellow:
 | 
			
		||||
      return "3";
 | 
			
		||||
    default:
 | 
			
		||||
      return nullptr;
 | 
			
		||||
      assert(false);
 | 
			
		||||
      return "9" ;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user