Przeglądaj źródła

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

svn:r2919
Roger Dingledine 20 lat temu
rodzic
commit
d4ac7300d6
1 zmienionych plików z 1 dodań i 0 usunięć
  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);