Skip to content
Snippets Groups Projects
Commit 3ead0a40 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

check parameters of knot_zonedb_build_index()

CID #1126131
parent 1a0aa2d3
No related branches found
No related tags found
No related merge requests found
......@@ -187,6 +187,10 @@ knot_zone_t *knot_zonedb_remove_zone(knot_zonedb_t *db,
int knot_zonedb_build_index(knot_zonedb_t *db)
{
if (!db) {
return KNOT_EINVAL;
}
/* First, sort all zones based on the label count first and lexicographic
* order second. The name with most labels goes first.
* i.e. {a, a.b, a.c, b } -> {a.b, a.c, a, b} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment