[libvirt] [PATCH 0/5] virCommandRunRegex cleanups
Ján Tomko
jtomko at redhat.com
Tue Mar 25 07:17:47 UTC 2014
Simplify the code. This should have no functional change
(except for the impossible leak fix in 3/5). Most of this
functionality is tested in viriscsitest.
Ján Tomko (5):
Remove useless 'maxReg' variable
Simplify the loop in virCommandRunRegex
Free groups in case of a partial match
Use VIR_STRNDUP instead of modifying the matched string
Shift the for loop over matched vars by one
src/util/vircommand.c | 46 +++++++++++++++++++---------------------------
1 file changed, 19 insertions(+), 27 deletions(-)
--
1.8.3.2
More information about the libvir-list
mailing list