all: fix various warnings detected with coverity

https://bugzilla.gnome.org/show_bug.cgi?id=728320

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller
2014-04-15 16:54:38 +02:00
parent 981e33b83b
commit 9ef23947cc
10 changed files with 13 additions and 30 deletions

View File

@@ -1140,8 +1140,6 @@ fail:
nm_log_err (LOGD_CORE, "Failed asserting path component: NULL");
else
nm_log_err (LOGD_CORE, "Failed asserting path component: \"%s\"", name);
g_assert_not_reached ();
g_return_val_if_reached ("XXXXX");
return "XXXXX";
g_error ("FATAL: Failed asserting path component: %s", name ? name : "(null)");
}