GNOME Bugzilla – Bug 762937
Mention that g_clear_error can be used with an "empty" GError
Last modified: 2016-03-10 08:13:51 UTC
I noticed this patch lurking on GitHub: https://github.com/GNOME/glib/pull/9 Given that I have had to look at the g_clear_error source for clarification in the past, it might be worth documenting this clearly.
Created attachment 322790 [details] [review] gerror: Mention that g_clear_error can be used with an "empty" GError
Review of attachment 322790 [details] [review]: Odd. I wouldn't have expected that to be allowed. Fits with other uses of the _clear idiom, though. Also documents existing behaviour. Thanks!
Comment on attachment 322790 [details] [review] gerror: Mention that g_clear_error can be used with an "empty" GError Thanks for taking a look. Pushed to master.