Skip to content

Commit 6c333eb

Browse files
committed
Fix typo when exporting control chars.
1 parent aac2ee9 commit 6c333eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cups/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ cupsJSONExportString(cups_json_t *json) // I - JSON root node
407407
*ptr++ = '\\';
408408
*ptr++ = 't';
409409
}
410-
if ((*value & 255) < ' ')
410+
else if ((*value & 255) < ' ')
411411
{
412412
snprintf(ptr, length - (size_t)(ptr - s), "\\u%04x", *value);
413413
ptr += 6;

0 commit comments

Comments
 (0)