json: fix backslash escape typo in jsonw_puts
Subsystems (3)
PATCH 1/1 json: fix backslash escape typo in jsonw_puts
Fixes fcc16c22 ("provide common json output formatter")
Signed-off-by Ivan Delalande <[email protected]>
--- lib/json_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/json_writer.c +1 -1
@@ -75,7 +75,7 @@ static void jsonw_puts(json_writer_t *self, const char *str)fputs ("\\b" , self->out);break ;case '\\' : -fputs ("\\n" , self->out); +fputs ("\\\\" , self->out);break ;case '"' :fputs ("\\\"" , self->out);
Signature · 1 line
2.22.0
Stephen Hemminger
AppliedQuoted 2 lines · On Wed, 17 Jul 2019 18:15:31 -0700 Ivan Delalande <[email protected]> wrote:
Fixes fcc16c22 ("provide common json output formatter")Signed-off-by Ivan Delalande <[email protected]>
Applied.