diff --git a/system/jlib/jsocket.cpp b/system/jlib/jsocket.cpp index f246cc8769f..420487f3afa 100644 --- a/system/jlib/jsocket.cpp +++ b/system/jlib/jsocket.cpp @@ -3598,7 +3598,6 @@ bool IpAddress::ipset(const char *text) { if (text&&*text) { if ((text[0]=='.')&&(text[1]==0)) { - hostname.set(GetCachedHostName()); // Is this better than '.'? ipset(queryHostIP()); return true; } diff --git a/system/jlib/jstring.cpp b/system/jlib/jstring.cpp index b54d30e4838..fc8fc9c20d1 100644 --- a/system/jlib/jstring.cpp +++ b/system/jlib/jstring.cpp @@ -1434,7 +1434,7 @@ StringAttr& StringAttr::operator = (StringAttr && from) StringAttr& StringAttr::operator = (const StringAttr & from) { - set(from.str()); + set(from.get()); return *this; }