diff options
author | Jiří Klimeš <jklimes@redhat.com> | 2014-12-12 15:07:15 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-12-16 21:47:01 +0100 |
commit | 932f1ca63ebf009e1ae3e291fa4ed1155a59d086 (patch) | |
tree | b59278cbb2bee99ee419f4157a0e8d5ea145f7c9 | |
parent | c140f64b3982a5659ca4554f2b95d69a5733d2e7 (diff) | |
download | NetworkManager-932f1ca63ebf009e1ae3e291fa4ed1155a59d086.tar.gz |
cli: mute coverity for Error: DEADCODE (CWE-561)
It can't recognize that the variables are set when parsing arguments.
(cherry picked from commit ed088b0df7df2e5fc9ccd0a516cb18f74b1b6022)
-rw-r--r-- | clients/cli/connections.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 6a532b5852..5de9cc9d13 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -5256,6 +5256,7 @@ cleanup_olpc: add_ip4_address_to_connection (ip4addr, connection); } + /* coverity[dead_error_begin] */ if (gw4) { NMSettingIPConfig *s_ip = nm_connection_get_setting_ip4_config (connection); @@ -5288,6 +5289,7 @@ cleanup_olpc: add_ip6_address_to_connection (ip6addr, connection); } + /* coverity[dead_error_begin] */ if (gw6) { NMSettingIPConfig *s_ip = nm_connection_get_setting_ip6_config (connection); |