]> git.ipfire.org Git - thirdparty/libvirt.git/commit
command: improve allocation failure reporting
authorEric Blake <eblake@redhat.com>
Mon, 6 Dec 2010 20:58:52 +0000 (13:58 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 7 Dec 2010 16:34:09 +0000 (09:34 -0700)
commitc426d13b73cfea810da46954ba86c8794838b265
treee2012fdf6864d3ab37858b1d4ccfb4a8e517364b
parentc1c1ff7e47f92a1d05619650bd7fb357aa689efb
command: improve allocation failure reporting

* src/util/command.c (virCommandAddEnvString): Remove duplicate
code.
(virCommandToString, virCommandRun, virCommandRunAsync)
(virCommandWait): Report NULL command as ENOMEM, not invalid
usage.
Reported by Jiri Denemark.
src/util/command.c