Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e15b5678 authored by Dan Austin's avatar Dan Austin
Browse files

Address const issues in preparation for libcxx rebase.

Change-Id: I61777e557738b2df8b6037a6f71a2cf0a24967dd
parent f903306a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -498,8 +498,8 @@ static bool MakeURL(const char *baseURL, const char *url, AString *out) {
    if (url[0] == '/') {
        // URL is an absolute path.

        char *protocolEnd = strstr(baseURL, "//") + 2;
        char *pathStart = strchr(protocolEnd, '/');
        const char *protocolEnd = strstr(baseURL, "//") + 2;
        const char *pathStart = strchr(protocolEnd, '/');

        if (pathStart != NULL) {
            out->setTo(baseURL, pathStart - baseURL);