aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-20 12:17:19 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-20 12:17:19 +0000
commitd4ac7300d6d0a3db444fb4a6683a03f91e8dbeac (patch)
tree1fd9243b77a69a476ec0df99f45c7994069dc9d5 /src/common/log.c
parent246b14d8e9bf422eaea95176fccc60c658ba76f8 (diff)
downloadtor-d4ac7300d6d0a3db444fb4a6683a03f91e8dbeac.tar
tor-d4ac7300d6d0a3db444fb4a6683a03f91e8dbeac.tar.gz
and a comment so i don't try to 'fix' it again later
svn:r2919
Diffstat (limited to 'src/common/log.c')
-rw-r--r--src/common/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/log.c b/src/common/log.c
index 80b4ada61..e8b43228b 100644
--- a/src/common/log.c
+++ b/src/common/log.c
@@ -349,6 +349,7 @@ void close_temp_logs(void)
for (p = &logfiles; *p; ) {
if ((*p)->is_temporary) {
lf = *p;
+ /* we use *p here to handle the edge case of the head of the list */
*p = (*p)->next;
close_log(lf);
tor_free(lf->filename);