Save a couple characters' allocation in esc_for_log

This commit is contained in:
Florian Zumbiehl
2010-06-14 14:05:03 -04:00
committed by Nick Mathewson
parent 308457218a
commit 426116113f
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
o Minor bugfixes
- Save a couple bytes in memory allocation every time we escape
certain characters in a string. Patch from Florian Zumbiehl.
+3
View File
@@ -940,6 +940,9 @@ esc_for_log(const char *s)
case '\\':
case '\"':
case '\'':
case '\r':
case '\n':
case '\t':
len += 2;
break;
default: