diff --git a/gdbsupport/pathstuff.cc b/gdbsupport/pathstuff.cc index 5b5a8eea904..af10c6ebd2e 100644 --- a/gdbsupport/pathstuff.cc +++ b/gdbsupport/pathstuff.cc @@ -200,7 +200,7 @@ path_join (gdb::array_view paths) const gdb::string_view path = paths[i]; if (i > 0) - gdb_assert (!IS_ABSOLUTE_PATH (path)); + gdb_assert (path.empty () || !IS_ABSOLUTE_PATH (path)); if (!ret.empty () && !IS_DIR_SEPARATOR (ret.back ())) ret += '/';