From 2bcd0f34f546ae9538a9b95cb5a2b17aaa4dd02f Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 8 Oct 2004 05:43:28 +0000 Subject: fix compile error: move variable declarations before code svn:r2430 --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index faa87c9c8..5d5f3b554 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -231,10 +231,10 @@ int tor_strpartition(char *dest, size_t dest_len, const char *s, const char *insert, size_t n, part_finish_rule_t rule) { - tor_assert(s && insert && n > 0); char *destp; int len_in, len_out, len_ins; int is_even; + tor_assert(s && insert && n > 0); len_in = strlen(s); len_ins = strlen(insert); len_out = len_in + (len_in/n)*len_ins; -- cgit v1.2.3