diff options
author | Thomas Haller <thaller@redhat.com> | 2013-10-31 14:13:33 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2013-11-13 15:29:24 +0100 |
commit | 97935382f4aca80b8f952ea9fe3ce205253758b7 (patch) | |
tree | d1dbfe40b5e93ef2c60649956519fe763004c530 /libnm-glib/nm-client.c | |
parent | ab92a0d69c6f75eb8137674a00cd9735556b06ad (diff) |
coverity: fix various warnings detected with Coverity
These are (most likely) only warnings and not severe bugs.
Some of these changes are mostly made to get a clean run of
Coverity without any warnings.
Error found by running Coverity scan
https://bugzilla.redhat.com/show_bug.cgi?id=1025894
Co-Authored-By: Jiří Klimeš <jklimes@redhat.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'libnm-glib/nm-client.c')
-rw-r--r-- | libnm-glib/nm-client.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libnm-glib/nm-client.c b/libnm-glib/nm-client.c index 1ffb8668f7..68ad41245d 100644 --- a/libnm-glib/nm-client.c +++ b/libnm-glib/nm-client.c @@ -1824,8 +1824,13 @@ static void constructed (GObject *object) { NMClientPrivate *priv = NM_CLIENT_GET_PRIVATE (object); + GError *error = NULL; - nm_utils_init (NULL); + if (!nm_utils_init (&error)) { + g_warning ("Couldn't initilize nm-utils/crypto system: %d %s", + error->code, error->message); + g_clear_error (&error); + } G_OBJECT_CLASS (nm_client_parent_class)->constructed (object); |