diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-08 05:43:28 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-08 05:43:28 +0000 |
commit | 2bcd0f34f546ae9538a9b95cb5a2b17aaa4dd02f (patch) | |
tree | 52fbd4ce5554e2824353daaf8d86bae13ca92933 /src | |
parent | 6c970aec946942d10996cda55798859dbc90f105 (diff) | |
download | tor-2bcd0f34f546ae9538a9b95cb5a2b17aaa4dd02f.tar tor-2bcd0f34f546ae9538a9b95cb5a2b17aaa4dd02f.tar.gz |
fix compile error: move variable declarations before code
svn:r2430
Diffstat (limited to 'src')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |