diff options
author | midipix <writeonce@midipix.org> | 2017-08-04 22:22:22 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-08-04 17:33:16 -0400 |
commit | 335494754eba35020cb2d4fd8c976fdb3a6e3507 (patch) | |
tree | 7930defc3a7f3cff1d7bc4c78c2585e9f7d4fbaa /src | |
parent | 93e3aa4e1c29098ffc2b2b74b445198593936e97 (diff) | |
download | ntapi-335494754eba35020cb2d4fd8c976fdb3a6e3507.tar.bz2 ntapi-335494754eba35020cb2d4fd8c976fdb3a6e3507.tar.xz |
__tt_port_attr_from_name(): properly initialize attr->type.
Diffstat (limited to 'src')
-rw-r--r-- | src/port/ntapi_port_name_helper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/port/ntapi_port_name_helper.c b/src/port/ntapi_port_name_helper.c index a918df7..dabbdc0 100644 --- a/src/port/ntapi_port_name_helper.c +++ b/src/port/ntapi_port_name_helper.c @@ -251,6 +251,10 @@ static int32_t __tt_port_attr_from_name( if (name->port_name_keys.uscore_5th != '_') return NT_STATUS_INVALID_PARAMETER; + /* type */ + attr->type = type; + attr->subtype = 0; + /* unknown defaults */ attr->ver_major = 0; attr->ver_minor = 0; |