Merge pull request #5560 from kumpera/wasm-work-p3
[mono.git] / mcs / class / Mono.Profiler.Log / Mono.Profiler.Log / LogProcessor.cs
index 7e9871efa63034dda37fcfb542604b4b393d9a63..d40897c3a7e60a8e1a8307a09b6f90b4755b68b9 100644 (file)
@@ -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;
                                }