summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-04-20 11:48:45 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-05-16 09:57:42 -0400
commit4b85140f5a6eb5b5c2f425940b585a8ace1253e0 (patch)
tree984f1ca811587e8a8e2ec82257b37568a5a98a5f /lib/json.c
parent9d1448357e2a8e3c81ff3bf81bd0ec7eb71798c2 (diff)
bgpd: remove unnecessary test and allocate a bit earlier
The bgp_info_extra_get call gets the extra pointer, which is also needed for the setlabels() call, so move the call to above the setlabels. Also remove an unnecessary test of a pointer since we have already dereferenced it by the time we are testing for it's existence. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions