mirror of
https://github.com/PabloMK7/citra.git
synced 2025-11-01 22:28:47 +00:00
When the vector is empty, using `&vec[0]` involves undefined behaviour. While that works fine most of the time, Flatpak builds aborted on a failed `__builtin_expect`. I searched for such occurences across the codebase with the regex `(?<!&)&\w+\[0\]` and fixed those that would potentially cause issues. |
||
|---|---|---|
| .. | ||
| 3dsx.cpp | ||
| 3dsx.h | ||
| elf.cpp | ||
| elf.h | ||
| loader.cpp | ||
| loader.h | ||
| ncch.cpp | ||
| ncch.h | ||
| smdh.cpp | ||
| smdh.h | ||