diff --git a/src/ifcparse/IfcUtil.cpp b/src/ifcparse/IfcUtil.cpp index 2a87c1f9bd..6578fec347 100644 --- a/src/ifcparse/IfcUtil.cpp +++ b/src/ifcparse/IfcUtil.cpp @@ -173,7 +173,7 @@ bool IfcUtil::valid_binary_string(const std::string& s) { for (std::string::const_iterator it = s.begin(); it != s.end(); ++it) { if (*it != '0' && *it != '1') return false; } - return s.empty() ? false : true; + return true; } void IfcUtil::sanitate_material_name(std::string &str)