Skip to content
Snippets Groups Projects
Commit 42611611 authored by Florian Zumbiehl's avatar Florian Zumbiehl Committed by Nick Mathewson
Browse files

Save a couple characters' allocation in esc_for_log

parent 30845721
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes
- Save a couple bytes in memory allocation every time we escape
certain characters in a string. Patch from Florian Zumbiehl.
......@@ -940,6 +940,9 @@ esc_for_log(const char *s)
case '\\':
case '\"':
case '\'':
case '\r':
case '\n':
case '\t':
len += 2;
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment