]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix compile error: move variable declarations before code
authorRoger Dingledine <arma@torproject.org>
Fri, 8 Oct 2004 05:43:28 +0000 (05:43 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 8 Oct 2004 05:43:28 +0000 (05:43 +0000)
svn:r2430

src/common/util.c

index faa87c9c85b158587c4e6a0f5ed0b049d5923715..5d5f3b5545b7e8f5251706eccaf7f6fe8f8d38bc 100644 (file)
@@ -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;