]> git.ipfire.org Git - thirdparty/nftables.git/commit
main: Make 'buf' variable branch-local
authorPhil Sutter <phil@nwl.cc>
Wed, 21 Jun 2023 22:46:53 +0000 (00:46 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 4 Jul 2023 11:03:09 +0000 (13:03 +0200)
commitb30364a7a94eacf80c81022309006d37479f2ae2
tree80e8e285db1ad7f7fef2b878c7c73fee7c55121d
parent01e4dbb7a180239cfce68f1af94db0732030344d
main: Make 'buf' variable branch-local

It is used only to linearize non-option argv for passing to
nft_run_cmd_from_buffer(), reduce its scope. Allows to safely move the
free() call there, too.

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/main.c