* when we clone the attribute, we can just copy the pointer.
*/
flags->shortname = talloc_strdup(fr_dict_unconst((*da_p)->dict), value);
- if (flags->shortname) return -1;
+ if (!flags->shortname) return -1;
flags->has_shortname = true;
if ((da->type == FR_TYPE_GROUP) && !da->flags.allow_flat) {
if ((da->parent == attr_oid_tree) || da->parent->flags.allow_flat) {
da->flags.allow_flat = true;
- } else {
+ } else {
fr_dict_attr_t const *oid;
for (oid = da->parent; !oid->flags.is_root; oid = oid->parent) {