[xen] Use standard calling pattern for asprintf()
authorMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 12:41:01 +0000 (14:41 +0200)
committerMichael Brown <mcb30@ipxe.org>
Wed, 22 Mar 2017 12:41:01 +0000 (14:41 +0200)
commit01496a50282542fbac98b16ed40cbe52d7d6161d
tree98762defcc227351535fab30d5385191feab5a2a
parent21d8624da828f35f544b5bc7a764eb7f7edea90b
[xen] Use standard calling pattern for asprintf()

Our asprintf() implementation guarantees that strp will be NULL on
allocation failure, but this is not standard behaviour.  Detect errors
by checking for a negative return value instead of a NULL pointer.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/xen/xenstore.c