| ... | @@ -10969,7 +10969,8 @@ const GlobalErrorSet = struct { | ... | @@ -10969,7 +10969,8 @@ const GlobalErrorSet = struct { |
| 10969 | | 10969 | |
| 10970 | /// Not thread-safe, may only be called from the main thread. | 10970 | /// Not thread-safe, may only be called from the main thread. |
| 10971 | pub fn getNamesFromMainThread(ges: *const GlobalErrorSet) []const NullTerminatedString { | 10971 | pub fn getNamesFromMainThread(ges: *const GlobalErrorSet) []const NullTerminatedString { |
| 10972 | return ges.shared.names.view().items(.@"0")[0..ges.mutate.list.len]; | 10972 | const len = ges.mutate.list.len; |
| | 10973 | return if (len > 0) ges.shared.names.view().items(.@"0")[0..len] else &.{}; |
| 10973 | } | 10974 | } |
| 10974 | | 10975 | |
| 10975 | fn getErrorValue( | 10976 | fn getErrorValue( |