david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[settings] Treat an empty formatted value as meaning "delete setting"

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-10-15 12:41:04 +01:00
parent 1c2b6d29ea
commit 5ad445fd0b
1 changed files with 2 additions and 2 deletions

View File

@ -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 */