From 3a6d256da598d2fd9dc20137f208b88295374b67 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Sun, 28 Apr 2013 10:33:52 +0200 Subject: [PATCH] attr: Fix typo in nla_is_nested() Signed-off-by: Thomas Graf --- lib/attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /** @} */ -- 2.40.0