]> git.ipfire.org Git - thirdparty/nftables.git/commit
cli: Drop pointless check in cli_append_multiline()
authorPhil Sutter <phil@nwl.cc>
Thu, 1 Mar 2018 14:00:27 +0000 (15:00 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 2 Mar 2018 10:46:56 +0000 (11:46 +0100)
commitf51ed1db70abdbb909e81bc670ffdfa05f421257
tree912d1a0f32f30afb0be41d61f13d2e52a6c4f528
parent263c445ef4ae30eb9d6b99375dae150105a2eb04
cli: Drop pointless check in cli_append_multiline()

The function is called from cli_complete after it has checked for line
to be != NULL. The other part of the conditional, namely multiline being
NULL, is perfectly valid (if the last read line didn't end with
backslash. Hence drop the conditional completely.

Since variable eof is not used anywhere outside of the dropped
conditional, get rid of it completely.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/cli.c