Skip to content

Commit

Permalink
Fix up a few CodqQL scanner errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickson committed Nov 9, 2023
1 parent 781523f commit 646b345
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion OpenSim/Framework/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class VersionInfo
{
public const string VersionNumber = "0.9.2.2";
public const string AssemblyVersionNumber = "0.9.2.2";
public const string Release = "8709";
public const string Release = "8711";

public static string Version
{
Expand Down
11 changes: 6 additions & 5 deletions OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5923,7 +5923,6 @@ public int AddOrUpdateLinksetDataKey(string key, string value, string pass)
{
// Abort.
LinksetData[key] = original;
pd = null;
updateLinksetDataAccounting();
return 1;
}
Expand Down Expand Up @@ -5985,11 +5984,13 @@ public string[] GetLinksetDataSubList(int start, int count)
{
lock (linksetDataLock)
{
if (count == -1) count = LinksetDataKeys;
if (LinksetData == null) LinksetData = new Dictionary<string, LinksetDataEntry>();
if (count == -1)
count = LinksetDataKeys;

if (LinksetData == null)
LinksetData = new Dictionary<string, LinksetDataEntry>();

List<string> ret = new List<string>();
ret = LinksetData.Keys.Skip(start).Take(count).ToList();
List<string> ret = LinksetData.Keys.Skip(start).Take(count).ToList();
return ret.ToArray();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,9 @@ private static void ProcessLinksetData(SceneObjectPart obj, XmlReader reader)
}
catch
{

m_log.DebugFormat(
"[SceneObjectSerializer]: Exception while processing linksetdata for object part {0} {1}.",
obj.Name, obj.UUID);
}
}

Expand Down

0 comments on commit 646b345

Please sign in to comment.