diff options
author | Thomas Haller <thaller@redhat.com> | 2017-10-30 11:20:53 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-10-30 14:10:56 +0100 |
commit | 4a8a5495a914be95d3d09435f3d63fc16db954f4 (patch) | |
tree | f025e5e2f4130aa768c886f7963725207cd90aa8 /libnm-util | |
parent | de65d3da912edcb5a4277aba676531e1951a790d (diff) | |
download | NetworkManager-4a8a5495a914be95d3d09435f3d63fc16db954f4.tar.gz |
all: avoid coverity warnings about "Wrong Check of Return Value"
30. NetworkManager-1.9.2/src/settings/plugins/keyfile/nms-keyfile-writer.c:218:
check_return: Calling "g_mkdir_with_parents" without checking return
value (as is done elsewhere 4 out of 5
times).
25. NetworkManager-1.9.2/src/platform/nm-linux-platform.c:3969:
check_return: Calling "_nl_send_nlmsg" without checking return value (as
is done elsewhere 4 out of 5 times).
34. NetworkManager-1.9.2/src/nm-core-utils.c:2843:
negative_returns: "fd2" is passed to a parameter that cannot be negative.
26. NetworkManager-1.9.2/src/devices/wwan/nm-modem-broadband.c:897:
check_return: Calling "nm_utils_parse_inaddr_bin" without checking
return value (as is done elsewhere 4 out of 5 times).
3. NetworkManager-1.9.2/src/devices/bluetooth/nm-bluez5-manager.c:386:
check_return: Calling "g_variant_lookup" without checking return value
(as is done elsewhere 79 out of 83 times).
16. NetworkManager-1.9.2/libnm-util/nm-setting.c:405:
check_return: Calling "nm_g_object_set_property" without checking return
value (as is done elsewhere 4 out of 5 times).
Diffstat (limited to 'libnm-util')
-rw-r--r-- | libnm-util/nm-setting.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnm-util/nm-setting.c b/libnm-util/nm-setting.c index 53e8f34384..3bcefbc57c 100644 --- a/libnm-util/nm-setting.c +++ b/libnm-util/nm-setting.c @@ -402,7 +402,7 @@ nm_setting_new_from_hash (GType setting_type, GHashTable *hash) continue; } - nm_g_object_set_property ((GObject *) setting, prop_name, src_value, NULL); + (void) nm_g_object_set_property ((GObject *) setting, prop_name, src_value, NULL); } g_type_class_unref (class); |