Преглед изворни кода

and a comment so i don't try to 'fix' it again later

svn:r2919
Roger Dingledine пре 21 година
родитељ
комит
d4ac7300d6
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/common/log.c

+ 1 - 0
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);