]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh: Prefer g_strdup_printf() over g_snprintf() in vshReadlineOptionsGenerator()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 2 Feb 2021 10:05:47 +0000 (11:05 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Feb 2021 10:51:59 +0000 (11:51 +0100)
commiteac14234c83b926c4208ff625f2782371cfd0baa
tree70b3b1a2c2df26d5bc6464f420a55463cdc3795a
parent6ba61373b7a20096e8d37af6f7c0871068742946
vsh: Prefer g_strdup_printf() over g_snprintf() in vshReadlineOptionsGenerator()

The vshReadlineOptionsGenerator() function returns a string list
of all --options for given command. But the way that individual
items on the list are allocated can be written better.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
tools/vsh.c