mirror of
https://github.com/nigels-com/glew.git
synced 2025-10-27 02:22:21 +00:00
I think this code tried to check for a zero terminated null byte, but it actually just checked if the address of the corresponding character is non-zero, which is always true. These broken checks are simply dropped because the following code assumes that the string `b` doesn't include a null byte and all call sites already pass the length of the string without counting the null byte. This bug was found by gcc 12.1 which emits a warning on this kind of code. Now glew builds without any warnings using gcc 12.1. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102103 for the corresponding issue. |
||
|---|---|---|
| .. | ||
| bin | ||
| core/gl | ||
| doc | ||
| src | ||
| blacklist | ||
| custom.txt | ||
| Makefile | ||