diff options
-rw-r--r-- | libbutl/url.txx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libbutl/url.txx b/libbutl/url.txx index 7e3fddb..3f07eb8 100644 --- a/libbutl/url.txx +++ b/libbutl/url.txx @@ -430,14 +430,18 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. if (!u.empty ()) return u; - r += ':'; + if (!r.empty ()) + r += ':'; if (authority) { // We can't append '//' string literal, so appending characters. // - r += '/'; - r += '/'; + if (!r.empty ()) + { + r += '/'; + r += '/'; + } r += authority->string (); } |