summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-02-25 20:49:00 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-02-26 00:00:46 +0100
commit831600c3d073dff1c6c0a4de84ef476f97b0332d (patch)
tree575da3c80730e3cd57b51efdac687bc70005d4b0 /isisd
parent*: do not check XMALLOC / XCALLOC for null ret (diff)
downloadfrr-831600c3d073dff1c6c0a4de84ef476f97b0332d.tar.xz
frr-831600c3d073dff1c6c0a4de84ef476f97b0332d.zip
*: compare pointer types to NULL, not 0
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/dict.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/isisd/dict.c b/isisd/dict.c
index 5d3e61e6d..d91f05d25 100644
--- a/isisd/dict.c
+++ b/isisd/dict.c
@@ -1095,10 +1095,10 @@ void dict_load_end(dict_load_t *load)
baselevel = level = 1;
complete = tree[0];
- if (complete != 0) {
+ if (complete != NULL) {
tree[0] = 0;
complete->right = dictnil;
- while (tree[level] != 0) {
+ while (tree[level] != NULL) {
tree[level]->right = complete;
complete->parent = tree[level];
complete = tree[level];
@@ -1114,7 +1114,7 @@ void dict_load_end(dict_load_t *load)
complete = curr;
assert(level == baselevel);
- while (tree[level] != 0) {
+ while (tree[level] != NULL) {
tree[level]->right = complete;
complete->parent = tree[level];
complete = tree[level];
@@ -1134,7 +1134,7 @@ void dict_load_end(dict_load_t *load)
complete = dictnil;
for (i = 0; i < DICT_DEPTH_MAX; i++) {
- if (tree[i] != 0) {
+ if (tree[i] != NULL) {
tree[i]->right = complete;
complete->parent = tree[i];
complete = tree[i];