[libvirt] [PATCH 0/5] virCommandRunRegex cleanups

Michal Privoznik mprivozn at redhat.com
Wed Mar 26 13:20:05 UTC 2014


On 25.03.2014 08:17, Ján Tomko wrote:
> 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(-)
>

ACK series.

Michal




More information about the libvir-list mailing list