]> xenbits.xensource.com Git - libvirt.git/commit
vsh: Simplify bailing out on OOM conditions
authorPeter Krempa <pkrempa@redhat.com>
Fri, 12 Feb 2016 13:00:28 +0000 (14:00 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 15 Feb 2016 12:31:12 +0000 (13:31 +0100)
commit018010f05c0d9b4e4a7337f7bb1dd375c531637b
tree8c9323bde701fab2169ffe13ec624d0a629653a0
parent9cb8b0e5a4650e3d22c21b100970686b7da587b8
vsh: Simplify bailing out on OOM conditions

When we hit OOM it doesn't really make sense to format the error message
by attempting to allocate it. Introduce a simple helper that prints a
static message and terminates the execution.
tools/vsh.c