fix an assert on startup when the disk is full and you're logging to a file

svn:r3204
This commit is contained in:
Roger Dingledine
2004-12-22 08:16:42 +00:00
parent cf17d0d29c
commit c3189c2573
+1 -3
View File
@@ -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;
}