Commit b2230cb3 authored by Philip Withnall's avatar Philip Withnall
Browse files

gerror: Document in the GError rules that stack allocation is bad

It means that extended error domains can’t be used.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
parent 5f112062
......@@ -340,6 +340,8 @@
* - A `GError*` must be initialized to %NULL before passing its address
* to a function that can report errors.
* - #GError structs must not be stack-allocated.
* - "Piling up" errors is always a bug. That is, if you assign a
* new #GError to a `GError*` that is non-%NULL, thus overwriting
* the previous error, it indicates that you should have aborted
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment