diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-03-04 16:02:35 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-03-04 16:02:40 +0100 |
commit | 1769f805473142138a5c27570970fe0385897481 (patch) | |
tree | 825d76d71465b4cea58083cf956f0d36e30764cc /doc/classes/Texture2D.xml | |
parent | 3078b92dffd59204556037315acebaf2fe46dbff (diff) |
WebRTC: Fix potential nullptr dereference in error message
This was evidently a typo. Didn't get a crash but GCC 12 raised a
`-Warray-bounds` warning:
```
In file included from ./core/io/stream_peer.h:34,
from ./core/io/packet_peer.h:34,
from ./core/multiplayer/multiplayer_peer.h:34,
from modules/webrtc/webrtc_multiplayer_peer.h:34,
from modules/webrtc/webrtc_multiplayer_peer.cpp:31:
In member function 'T* Ref<T>::operator->() [with T = WebRTCMultiplayerPeer::ConnectedPeer]',
inlined from 'virtual Error WebRTCMultiplayerPeer::put_packet(const uint8_t*, int)' at modules/webrtc/webrtc_multiplayer_peer.cpp:376:4:
./core/object/ref_counted.h:101:24: error: array subscript 0 is outside array bounds of 'Ref<WebRTCMultiplayerPeer::ConnectedPeer> [0]' [-Werror=array-bounds]
101 | return reference;
| ^~~~~~~~~
```
Diffstat (limited to 'doc/classes/Texture2D.xml')
0 files changed, 0 insertions, 0 deletions