diff options
-rw-r--r-- | bpkg/fetch.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx index 494b63d..2306d4e 100644 --- a/bpkg/fetch.cxx +++ b/bpkg/fetch.cxx @@ -467,7 +467,7 @@ namespace bpkg static string to_url (const string& host, uint16_t port, const path& file) { - assert (!file.empty () && file.relative ()); + assert (file.relative ()); if (*file.begin () == "..") fail << "invalid URL path " << file; @@ -680,7 +680,7 @@ namespace bpkg const path& a, const dir_path& d) { - assert (a.relative ()); + assert (!a.empty () && a.relative ()); assert (rl.remote () || rl.absolute ()); path f (rl.path () / a); |