浏览代码

r11688@Kushana: nickm | 2006-12-23 22:08:36 -0500
Fix "r may be used uninitialized" warning from last patch.


svn:r9177

Nick Mathewson 19 年之前
父节点
当前提交
d76b2a4ec0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/hibernate.c

+ 1 - 1
src/or/hibernate.c

@@ -542,7 +542,7 @@ accounting_record_bandwidth_usage(time_t now, or_state_t *state)
   char time2[ISO_TIME_LEN+1];
   char time2[ISO_TIME_LEN+1];
   char *cp = buf;
   char *cp = buf;
   time_t tmp;
   time_t tmp;
-  int r;
+  int r = 0;
   uint64_t expected;
   uint64_t expected;
   static time_t last_recorded;
   static time_t last_recorded;