]> git.puffer.fish Git - mirror/frr.git/commit
lib: Ensure an empty string does not get printed for host/domain 11067/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 21 Apr 2022 18:13:01 +0000 (14:13 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 21 Apr 2022 18:13:01 +0000 (14:13 -0400)
commita7141b85c8ded6f05edf51d5a61e063493fc85c7
treeea5fecfa5a5f06623beec644a148af2908f902c2
parent60d296518b48c75ab4d21ed696e970b8d987a5ac
lib: Ensure an empty string does not get printed for host/domain

End operator is showing:
!
frr version 8.0.1
frr defaults traditional
hostname test.example.com
domainname

domainname should not be printed in this case at all.  I do not
see any mechanism in current code that this could happen, but
what do I know?  Put some extra stupid insurance in place
to prevent bad config from being generated.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/command.c