Skip to content

Commit

Permalink
lightning-cli: consider empty inputs to be strings
Browse files Browse the repository at this point in the history
  • Loading branch information
bitonic-cjp authored and cdecker committed Aug 7, 2018
1 parent 2a14a98 commit f1df9df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/lightning-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ static char *opt_set_ordered(enum input *input)
static bool is_literal(const char *arg)
{
size_t arglen = strlen(arg);
if (arglen == 0) {
return false;
}
return strspn(arg, "0123456789") == arglen
|| streq(arg, "true")
|| streq(arg, "false")
Expand Down

0 comments on commit f1df9df

Please sign in to comment.