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>tags/v1.20.1
|
||
538 | 538 |
|
539 | 539 |
|
540 | 540 |
|
541 |
|
|
542 |
|
|
541 |
|
|
543 | 542 |
|
544 | 543 |
|
545 | 544 |
|