[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Use escaped() for remaining cases.
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 '\\':