chiark / gitweb /
machine: do not rely on asprintf setting arg on error
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 Mar 2015 19:01:45 +0000 (14:01 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 Mar 2015 19:01:45 +0000 (14:01 -0500)
commit2c07315225bef6be4830bce25a74da7f0ba4fcdc
treea36819ffde64067d556ff1d26687f1426b628dbd
parentfadce6caf57986dc941e5fe3c860998890d49fd2
machine: do not rely on asprintf setting arg on error

Strictly speaking, the output variable is undefined if asprintf fails.
We use the return value not the arg everywhere, and should we do here.
src/machine/machine-dbus.c