summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index a19f9d4..735041e 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -250,10 +250,13 @@ void count_peers_and_seeds( ot_peer peer_list, unsigned long *peers, unsigned lo
250 } while( compare_ip_port( peer_list + *peers, peer_list + *peers - 1 ) < 0 ); 250 } while( compare_ip_port( peer_list + *peers, peer_list + *peers - 1 ) < 0 );
251} 251}
252 252
253int init_logic( ) { 253int init_logic( char *directory ) {
254 glob_t globber; 254 glob_t globber;
255 int i; 255 int i;
256 256
257 if( directory )
258 chdir( directory );
259
257 scratch_space = map_file( "" ); 260 scratch_space = map_file( "" );
258 torrents_list = map_file( "" ); 261 torrents_list = map_file( "" );
259 torrents_count = 0; 262 torrents_count = 0;