summaryrefslogtreecommitdiffstats
path: root/lib/attr.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-04-28 08:33:52 (GMT)
committerThomas Graf <tgraf@suug.ch>2013-04-28 08:33:52 (GMT)
commit3a6d256da598d2fd9dc20137f208b88295374b67 (patch)
tree58779b6f3ad0224c228777d873aaf0c89d756765 /lib/attr.c
parent37f788f3918cd03e6b1099078e8aef24e07d5462 (diff)
downloadlibnl-3a6d256da598d2fd9dc20137f208b88295374b67.zip
libnl-3a6d256da598d2fd9dc20137f208b88295374b67.tar.gz
libnl-3a6d256da598d2fd9dc20137f208b88295374b67.tar.bz2
attr: Fix typo in nla_is_nested()
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'lib/attr.c')
-rw-r--r--lib/attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/attr.c b/lib/attr.c
index 14552c6..6fc6af5 100644
--- a/lib/attr.c
+++ b/lib/attr.c
@@ -899,7 +899,7 @@ int nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla,
*/
int nla_is_nested(struct nlattr *attr)
{
- return !!(nla->nla_type & NLA_F_NESTED);
+ return !!(attr->nla_type & NLA_F_NESTED);
}
/** @} */