summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/parseopt.h
diff options
context:
space:
mode:
authorMichael Brown2011-03-03 20:59:31 +0100
committerMichael Brown2011-03-03 21:03:08 +0100
commit48a4001152d77ae7c0a61886d961b07e13ec713d (patch)
tree6c58dfd94c1907b01062dab1d4227044af5319cc /src/include/ipxe/parseopt.h
parent[settings] Avoid fetch_string_setting_copy() leaving an uninitialised pointer (diff)
downloadipxe-48a4001152d77ae7c0a61886d961b07e13ec713d.tar.gz
ipxe-48a4001152d77ae7c0a61886d961b07e13ec713d.tar.xz
ipxe-48a4001152d77ae7c0a61886d961b07e13ec713d.zip
[settings] Make fetch_string_setting_copy() easier to use
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>
Diffstat (limited to 'src/include/ipxe/parseopt.h')
0 files changed, 0 insertions, 0 deletions