aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/writer.c b/src/writer.c
index aeac9b36..f4edf731 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -259,6 +259,8 @@ lname_must_escape(const uint8_t c)
case '(': case ')': case '*': case '+': case ',': case '/':
case ';': case '=': case '?': case '@': case '~':
return true;
+ default:
+ break;
}
return false;
}
@@ -338,6 +340,7 @@ write_text(SerdWriter* writer, TextContext ctx,
switch (in) {
case '\b': len += sink("\\b", 2, writer); continue;
case '\f': len += sink("\\f", 2, writer); continue;
+ default: break;
}
}
}