Skip to content

Commit

Permalink
Merge pull request #17816 from ghalliday/issue30358
Browse files Browse the repository at this point in the history
HPCC-30358 Avoid converting local hostname to a blank string

Reviewed-by: Jake Smith <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Sep 26, 2023
2 parents 65b9811 + 7df93fd commit 2b038c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion system/jlib/jsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion system/jlib/jstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ StringAttr& StringAttr::operator = (StringAttr && from)

StringAttr& StringAttr::operator = (const StringAttr & from)
{
set(from.str());
set(from.get());
return *this;
}

Expand Down

0 comments on commit 2b038c1

Please sign in to comment.