This is useful when we have some offset that isn't initialised. It will
point to the start of the string pool which is some random string that
happened to be added first.
An empty string at least signifies better that something is unset.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
return r;
}
+ // Add an empty string to the stringpool
+ r = loc_stringpool_add(w->pool, "");
+ if (r) {
+ loc_writer_unref(w);
+ return r;
+ }
+
// Initialize the network tree
r = loc_network_tree_new(ctx, &w->networks);
if (r) {