mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
fix compile error: move variable declarations before code
svn:r2430
This commit is contained in:
parent
6c970aec94
commit
2bcd0f34f5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue