mirror of https://github.com/Kitware/CMake.git
Browse Source
Calling `std::string::front()` on an empty string results in an undefined behavior by the C++ standard. In gcc8 it causes an assertion to fail. This adds a check to `AUTOGEN` if a file to read is empty and in case avoids the use of an empty `std::string` buffer. Closes #17793pull/320/head

committed by
Brad King

1 changed files with 18 additions and 11 deletions
Loading…
Reference in new issue