mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 18:08:05 +02:00
platform: return NULL type_name on failure
This commit is contained in:
parent
a453563bee
commit
342134179c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue