[or-cvs] Use escaped() for remaining cases.

Nick Mathewson nickm at seul.org
Sat Mar 11 02:21:32 UTC 2006


Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv22042/src/common

Modified Files:
	util.c 
Log Message:
Use escaped() for remaining cases.

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/util.c,v
retrieving revision 1.250
retrieving revision 1.251
diff -u -p -d -r1.250 -r1.251
--- util.c	6 Mar 2006 20:01:46 -0000	1.250
+++ util.c	11 Mar 2006 02:21:29 -0000	1.251
@@ -592,6 +592,10 @@ esc_for_log(const char *s)
   const char *cp;
   char *result, *outp;
   size_t len = 3;
+  if (!s) {
+    return tor_strdup("");
+  }
+
   for (cp = s; *cp; ++cp) {
     switch (*cp) {
       case '\\':



More information about the tor-commits mailing list