diff --git a/iwyu_path_util.cc b/iwyu_path_util.cc index 9987ea4..b63a5c0 100644 --- a/iwyu_path_util.cc +++ b/iwyu_path_util.cc @@ -86,7 +86,7 @@ string Basename(const string& path) { string GetCanonicalName(string file_path) { // For this special 'path' we just return it. // Note that we leave the 'quotes' to make it different from regular paths. - if (file_path == "") + if (file_path == "" || file_path == "") return file_path; CHECK_(!IsQuotedInclude(file_path));