diff --git a/src/ifcparse/IfcUtil.cpp b/src/ifcparse/IfcUtil.cpp index 6578fec347..2a87c1f9bd 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 true; + return s.empty() ? false : true; } void IfcUtil::sanitate_material_name(std::string &str)