Most callers of functions in the fetch_setting() family treat any errors as meaning "non-existent setting". In the case of fetch_string_setting_copy(), an existent setting can still result in an error due to memory allocation failure. Allow the caller to distinguish between a non-existent setting and an error in allocating memory for the copy, by returning success (and a NULL buffer pointer) for a non-existent setting. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
| 625 |
|
625 |
|
| 626 |
|
626 |
|
| 627 |
|
627 |
|
|
628 |
|
|
|
629 |
|
|
|
630 |
|
|
|
631 |
|
|
|
632 |
|
|
| 628 |
|
633 |
|
| 629 |
|
634 |
|
| 630 |
|
635 |
|
|
|
||
| 632 |
|
637 |
|
| 633 |
|
638 |
|
| 634 |
|
639 |
|
|
640 |
|
|
| 635 |
|
641 |
|
| 636 |
|
642 |
|
|
643 |
|
|
| 637 |
|
644 |
|
| 638 |
|
645 |
|
| 639 |
|
|
|
|
646 |
|
|
| 640 |
|
647 |
|
|
648 |
|
|
| 641 |
|
649 |
|
| 642 |
|
650 |
|
| 643 |
|
651 |
|
| 644 |
|
652 |
|
|
653 |
|
|
| 645 |
|
654 |
|
| 646 |
|
655 |
|
| 647 |
|
656 |
|