tools/record: fix a strlen assumption

We want to be able to print single-character strings.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2021-04-07 15:26:16 +10:00
parent 354df8bce9
commit 57811e40f0

View file

@ -180,7 +180,7 @@ iprintf(FILE *fp,
int rc;
assert(indent < len);
assert(strlen(format) > 1);
assert(strlen(format) >= 1);
/* Special case: if we're printing a new list item, we want less
* indentation because the '- ' takes up one level of indentation