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
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
 o Minor bugfixes
   - Save a couple bytes in memory allocation every time we escape
     certain characters in a string.  Patch from Florian Zumbiehl.
+3 −0
Original line number Diff line number Diff line
@@ -940,6 +940,9 @@ esc_for_log(const char *s)
      case '\\':
      case '\"':
      case '\'':
      case '\r':
      case '\n':
      case '\t':
        len += 2;
        break;
      default: