소스 검색

Fix out-of-place declaration

svn:r4640
Nick Mathewson 20 년 전
부모
커밋
3cb7b97660
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/hibernate.c

+ 1 - 1
src/or/hibernate.c

@@ -865,8 +865,8 @@ accounting_getinfo_helper(const char *question, char **answer)
                  U64_PRINTF_ARG(n_bytes_read_in_interval),
                  U64_PRINTF_ARG(n_bytes_written_in_interval));
   } else if (!strcmp(question, "accounting/bytes-left")) {
-    *answer = tor_malloc(32);
     uint64_t limit = get_options()->AccountingMax;
+    *answer = tor_malloc(32);
     tor_snprintf(*answer, 32, U64_FORMAT" "U64_FORMAT,
                  U64_PRINTF_ARG(limit - n_bytes_read_in_interval),
                  U64_PRINTF_ARG(limit - n_bytes_written_in_interval));