浏览代码

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);