diff options
| author | Michael Brown | 2017-03-22 13:41:01 +0100 |
|---|---|---|
| committer | Michael Brown | 2017-03-22 13:41:01 +0100 |
| commit | 01496a50282542fbac98b16ed40cbe52d7d6161d (patch) | |
| tree | 98762defcc227351535fab30d5385191feab5a2a /src/interface/linux/linux_console.c | |
| parent | [usb] Use correct length for memcpy() (diff) | |
| download | ipxe-01496a50282542fbac98b16ed40cbe52d7d6161d.tar.gz ipxe-01496a50282542fbac98b16ed40cbe52d7d6161d.tar.xz ipxe-01496a50282542fbac98b16ed40cbe52d7d6161d.zip | |
[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>
Diffstat (limited to 'src/interface/linux/linux_console.c')
0 files changed, 0 insertions, 0 deletions
