debug: Optimise construction of header_str_no_nl
authorMartin Schwenke <martin@meltin.net>
Thu, 23 Sep 2021 08:13:30 +0000 (18:13 +1000)
committerVolker Lendecke <vl@samba.org>
Thu, 14 Oct 2021 10:21:30 +0000 (10:21 +0000)
commitee17f5306c3db1b6d950a9ea7d1787cac96a6d9d
tree1477d9bcfb08f397a5f4a3fda90a86f37dc9f793
parent8cdd20c70a17e6ee8e7ca41e4c38763f41d158b4
debug: Optimise construction of header_str_no_nl

If it isn't used then it isn't copied.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/util/debug.c