From: Roger Dingledine Date: Sat, 20 Nov 2004 12:17:19 +0000 (+0000) Subject: and a comment so i don't try to 'fix' it again later X-Git-Tag: tor-0.0.9rc1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4ac7300d6d0a3db444fb4a6683a03f91e8dbeac;p=thirdparty%2Ftor.git and a comment so i don't try to 'fix' it again later svn:r2919 --- diff --git a/src/common/log.c b/src/common/log.c index 80b4ada61e..e8b43228b0 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);