lib/json: format fix of append double quote
A couple of format fix shown by check_format.sh in the commit "Always append one double quote char in the end of string". Signed-off-by: Damiano Cipriani <damiano.cipriani@suse.com>
This commit is contained in:
parent
69f656824e
commit
4542f9b140
@ -395,7 +395,7 @@ write_string_or_name(struct spdk_json_write_ctx *w, const char *val, size_t len)
|
|||||||
const uint8_t *end = val + len;
|
const uint8_t *end = val + len;
|
||||||
bool failed = false;
|
bool failed = false;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
|
|
||||||
if (emit(w, "\"", 1)) { return fail(w); }
|
if (emit(w, "\"", 1)) { return fail(w); }
|
||||||
|
|
||||||
@ -430,7 +430,7 @@ write_string_or_name(struct spdk_json_write_ctx *w, const char *val, size_t len)
|
|||||||
p += codepoint_len;
|
p += codepoint_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always append "\"" in the end of string
|
/* Always append "\"" in the end of string */
|
||||||
retval = emit(w, "\"", 1);
|
retval = emit(w, "\"", 1);
|
||||||
|
|
||||||
if (failed) {
|
if (failed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user