Features:
=========
+* Protect index against OOM
+
* Implement actions in kmod tool like 'insert', 'remove', 'info', etc
* testsuite:
struct index_node_f *root;
struct buffer buf;
+ root = index_readroot(in);
+ if (root == NULL)
+ return;
+
buf_init(&buf);
buf_pushchars(&buf, prefix);
- root = index_readroot(in);
index_dump_node(root, &buf, fd);
buf_release(&buf);
}
struct index_mm_node *root;
struct buffer buf;
+ root = index_mm_readroot(idx);
+ if (root == NULL)
+ return;
+
buf_init(&buf);
buf_pushchars(&buf, prefix);
- root = index_mm_readroot(idx);
index_mm_dump_node(root, &buf, fd);
buf_release(&buf);
}