]> xenbits.xensource.com Git - libvirt.git/commit
commandhelper: Simplify envsort
authorTim Wiederhake <twiederh@redhat.com>
Mon, 1 Feb 2021 11:27:47 +0000 (12:27 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Feb 2021 14:00:53 +0000 (15:00 +0100)
commitd274092131e0e8efa8a8e713ad19e25ed56636a1
tree133f546478b71c57f18e7a0013777959a2124b3b
parent9f9b133e0cac4636f5817b6987f3cbf9f7d78e5e
commandhelper: Simplify envsort

This saves two invocations of each `strndup` and `free`.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
tests/commandhelper.c