NetworkManager/contrib
Thomas Haller a628a35e80
contrib/checkpatch: try to warn about uninitialized GError variables
When we have a GError* variable on the stack, we usually want to pass
it on to function that can fail. In that case, the variable MUST be
initialized to NULL. This is an easy mistake to make.

Note that this check still can have lots of false positives, for
example, if you have a struct with an GError field. In that case, you
would need to ensure that the entire struct is initialized. Ignore the
warning then.

Also, the check misses if you declare multiple variables on one line.
But that is already discouraged by our style.
2022-03-09 23:14:37 +01:00
..
alpine gitlab-ci: install missing packages on Alpine Linux 2020-12-23 10:48:26 +01:00
art/logo artwork: introduce NetworkManager stickers 2019-09-30 17:36:59 +02:00
debian Revert "contrib: no longer install libuuid as build dependency" 2021-05-26 22:16:35 +02:00
editors contrib: add emacs config for hacking on NM 2015-08-11 13:42:26 -04:00
fedora rpm: fix autotools build options for default plugins 2022-03-09 10:14:04 +01:00
scripts contrib/checkpatch: try to warn about uninitialized GError variables 2022-03-09 23:14:37 +01:00