platform: return NULL type_name on failure

This commit is contained in:
Pavel Šimerda 2013-05-10 21:40:44 +02:00
parent a453563bee
commit 342134179c

View file

@ -292,7 +292,7 @@ link_extract_type (struct rtnl_link *rtnllink, const char **out_name)
const char *type;
if (!rtnllink)
return_type (NM_LINK_TYPE_NONE, "none");
return_type (NM_LINK_TYPE_NONE, NULL);
type = rtnl_link_get_type (rtnllink);