mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
Changed "uninitialised" to "zeroed"
This commit is contained in:
parent
e49aed8012
commit
deb90ae59d
1 changed files with 2 additions and 3 deletions
|
@ -119,9 +119,8 @@ pre-allocated memory (e.g. a member of a struct).
|
||||||
* `create`/`destroy`: These also initialize/deinitialize, but will return a
|
* `create`/`destroy`: These also initialize/deinitialize, but will return a
|
||||||
pointer to a `malloc`ed chunk of memory, and will `free` it in `destroy`.
|
pointer to a `malloc`ed chunk of memory, and will `free` it in `destroy`.
|
||||||
|
|
||||||
A destruction function should always be able to accept a NULL pointer or an
|
A destruction function should always be able to accept a NULL pointer or a
|
||||||
otherwise uninitialised value and exit cleanly; this simplifies error handling
|
zeroed value and exit cleanly; this simplifies error handling a lot.
|
||||||
a lot.
|
|
||||||
|
|
||||||
### Error Codes
|
### Error Codes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue