| changeset | 179ffe99c57f |
|---|---|
| branch | |
| bookmark | |
| tag | |
| user | Ryan C. Gordon <icculus@icculus.org> |
| description | Always return a non-NULL pointer for malloc(0). Some C runtimes, like musl, will return NULL in this case. It's more convenient to not get a NULL (which is meant to be interpreted as a failure), but instead get a non-NULL pointer that can't be dereferenced (because it's a pointer to zero bytes of memory). |
| files | mojoshader.c mojoshader_assembler.c mojoshader_compiler.c mojoshader_opengl.c mojoshader_preprocessor.c |
↧
Always return a non-NULL pointer for malloc(0).
↧