From 4e608fb8f253b7c54abe18c9a2ccca0a4a0e160f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Wed, 20 Sep 2017 14:33:46 +0200 Subject: [PATCH] [Mono.Profiler.Log] Use null references to indicate the absence of names. --- mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs index 7e9871efa63..d40897c3a7e 100644 --- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs +++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProcessor.cs @@ -474,7 +474,7 @@ namespace Mono.Profiler.Log { list [i] = new CounterDescriptionsEvent.CounterDescription { Section = section, - SectionName = section == LogCounterSection.User ? _reader.ReadCString () : string.Empty, + SectionName = section == LogCounterSection.User ? _reader.ReadCString () : null, CounterName = _reader.ReadCString (), Type = (LogCounterType) _reader.ReadByte (), Unit = (LogCounterUnit) _reader.ReadByte (), @@ -548,7 +548,7 @@ namespace Mono.Profiler.Log { Type = helperType, BufferPointer = ReadPointer (), BufferSize = (long) _reader.ReadULeb128 (), - Name = helperType == LogJitHelper.SpecificTrampoline ? _reader.ReadCString () : string.Empty, + Name = helperType == LogJitHelper.SpecificTrampoline ? _reader.ReadCString () : null, }; break; } -- 2.25.1