]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/qtest: simplify qtest_process_inbuf
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 7 Feb 2025 15:30:59 +0000 (15:30 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 10 Feb 2025 13:47:58 +0000 (13:47 +0000)
commit1e00ebfd8012061c1186fbf368b4216ac6e299c4
tree1f26b5e17d619fed622dab737cea15fcc47e76de
parentff6c3b1a16ac2ee570447660526eea531d748396
tests/qtest: simplify qtest_process_inbuf

Don't both creating a GString to temporarily hold our qtest command.
Instead do a simpler g_strndup and use autofree to clean up
afterwards.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250207153112.3939799-5-alex.bennee@linaro.org>
system/qtest.c