Commit 858da5af authored by Michael Tremer's avatar Michael Tremer
Browse files

as: Return NULL if name is not set

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 38e07ee0
......@@ -81,7 +81,10 @@ LOC_EXPORT uint32_t loc_as_get_number(struct loc_as* as) {
}
LOC_EXPORT const char* loc_as_get_name(struct loc_as* as) {
return loc_stringpool_get(as->pool, as->name);
if (as->name)
return loc_stringpool_get(as->pool, as->name);
return NULL;
}
LOC_EXPORT int loc_as_set_name(struct loc_as* as, const char* name) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment