From a80ab84531fb1abd1e896d1adfa7e50fed80db39 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Thu, 2 Mar 2017 07:38:52 -0500 Subject: VPP-608: fix coverity warning in vppapigen Change-Id: Ic26216bb03d941c1625a61c1c3340d2d70d84bd0 Signed-off-by: Dave Barach --- src/tools/vppapigen/node.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/vppapigen') diff --git a/src/tools/vppapigen/node.c b/src/tools/vppapigen/node.c index 54fef8f1e59..359ac9c918d 100644 --- a/src/tools/vppapigen/node.c +++ b/src/tools/vppapigen/node.c @@ -754,7 +754,7 @@ void node_complex_generate (node_t *this, enum passid which, FILE *fp) union_prefix, member_name); indent_me(fp); - if (deeper->type == NODE_VECTOR) + if (deeper && deeper->type == NODE_VECTOR) fprintf(fp, "%s_print(a->%s%s, handle);\n", CDATA0, union_prefix, member_name); else @@ -778,7 +778,7 @@ void node_complex_generate (node_t *this, enum passid which, FILE *fp) } indent_me(fp); - if (deeper->type == NODE_VECTOR) + if (deeper && deeper->type == NODE_VECTOR) fprintf(fp, "%s_endian(a->%s%s);\n", CDATA0, union_prefix, member_name); else -- cgit 1.2.3-korg