[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix crash when looking for ~/.torrc with no $HOME set
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv29100/src/or
Modified Files:
config.c
Log Message:
Fix crash when looking for ~/.torrc with no $HOME set
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -d -r1.138 -r1.139
--- config.c 17 Aug 2004 06:27:32 -0000 1.138
+++ config.c 17 Aug 2004 07:33:06 -0000 1.139
@@ -669,7 +669,7 @@
using_default_torrc = 1;
} else {
char *fn = expand_filename("~/.torrc");
- if (file_status(fn)==FN_FILE) {
+ if (fn && file_status(fn)==FN_FILE) {
fname = fn;
} else {
tor_free(fn);