aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/util.c2
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;