mirror of
https://github.com/xcat2/xNBA.git
synced 2025-03-12 15:16:46 +00:00
[settings] Treat an empty formatted value as meaning "delete setting"
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
1c2b6d29ea
commit
5ad445fd0b
@ -1052,8 +1052,8 @@ int storef_setting ( struct settings *settings, struct setting *setting,
|
||||
int check_len;
|
||||
int rc;
|
||||
|
||||
/* NULL value implies deletion */
|
||||
if ( ! value )
|
||||
/* NULL value or empty string implies deletion */
|
||||
if ( ( ! value ) || ( ! value[0] ) )
|
||||
return delete_setting ( settings, setting );
|
||||
|
||||
/* Parse formatted value */
|
||||
|
Loading…
x
Reference in New Issue
Block a user