From a180c7526caeb849d04d5f83ac55226920d26b54 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 22 Nov 2010 21:11:03 +0000 Subject: [PATCH] [settings] Allow "set" command to take an empty value Allow "set " to be used to set the variable to an empty value, if permitted by the setting type. Note that some settings backends do not differentiate between an empty value and a non-existent value, so this may or may not be equivalent to "clear ". Signed-off-by: Michael Brown --- src/hci/commands/nvo_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hci/commands/nvo_cmd.c b/src/hci/commands/nvo_cmd.c index 87bdd8a1..3513c8de 100644 --- a/src/hci/commands/nvo_cmd.c +++ b/src/hci/commands/nvo_cmd.c @@ -87,7 +87,7 @@ static struct option_descriptor set_opts[] = {}; /** "set" command descriptor */ static struct command_descriptor set_cmd = - COMMAND_DESC ( struct set_options, set_opts, 2, MAX_ARGUMENTS, + COMMAND_DESC ( struct set_options, set_opts, 1, MAX_ARGUMENTS, " ", "" ); /**