libnetservices2: Fix Use-after-move

Pointed out by Clang Static Analyzer.

Change-Id: Ifbf5bd5e02825e60f7b70b7f99093b6b9740f81d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5896
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
This commit is contained in:
Murai Takashi 2022-12-11 20:00:32 +09:00 committed by Niels Sascha Reedijk
parent d3811d0036
commit 09b2fc9e11

View File

@ -71,7 +71,7 @@ BInvalidUrl::BInvalidUrl(const char* origin, BUrl url)
BInvalidUrl::BInvalidUrl(BString origin, BUrl url)
:
BError(std::move(origin)),
fUrl(std::move(origin))
fUrl(std::move(url))
{
}