From c3189c2573f25b10efe4c805e4ab85ca6ed9419c Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 22 Dec 2004 08:16:42 +0000 Subject: fix an assert on startup when the disk is full and you're logging to a file svn:r3204 --- src/common/log.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/log.c b/src/common/log.c index 3a4f32e176..2b0c2cc65a 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -393,9 +393,7 @@ int add_file_log(int loglevelMin, int loglevelMax, const char *filename) add_stream_log(loglevelMin, loglevelMax, filename, f); logfiles->needs_close = 1; if (log_tor_version(logfiles, 0) < 0) { - logfile_t *victim = logfiles; - logfiles = victim->next; - delete_log(victim); + delete_log(logfiles); } return 0; } -- cgit v1.2.3-54-g00ecf