]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
and a comment so i don't try to 'fix' it again later
authorRoger Dingledine <arma@torproject.org>
Sat, 20 Nov 2004 12:17:19 +0000 (12:17 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 20 Nov 2004 12:17:19 +0000 (12:17 +0000)
svn:r2919

src/common/log.c

index 80b4ada61e049bb7bba004e94d8548b73936fdd0..e8b43228b044bacec3c30790c72a459c2e8cee76 100644 (file)
@@ -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);