]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
tty: do not print extra newline after empty messages
authorPetr Špaček <petr.spacek@nic.cz>
Mon, 26 Oct 2020 17:38:29 +0000 (18:38 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 2 Nov 2020 09:28:55 +0000 (10:28 +0100)
commit768fe58f9488cd88af6c77ad880830b0c9da9dad
tree9e5efc42466a09998b5eab5b7ad2d38463e0ec2b
parent9fcab119ea09775470de8d256f1acd1995efb2eb
tty: do not print extra newline after empty messages

In case nothing (not even nil) is returned then do not print newline
after the zero-length message. This avoids unambiguous empty line in
output (is it an empty string which got printed?).
daemon/io.c
utils/client/kresc.c