initialize num_requests

This commit is contained in:
Jfreegman 2013-07-31 05:52:08 -04:00
parent 207c067cf2
commit 17e64b3ee5
2 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,7 @@ char line[STRING_LENGTH];
int x, y;
uint8_t pending_requests[256][CLIENT_ID_SIZE];
uint8_t num_requests;
uint8_t num_requests = 0;
void new_lines(char *line)
{
@ -57,6 +57,7 @@ void print_friendlist()
new_lines("[i] Friend List:");
uint32_t i;
for (i = 0; i <= num_requests; i++) {
printf ("num_resusts: %d\n", num_requests);
char fstring[128];
getname(i, (uint8_t*)name);

View File

@ -27,7 +27,7 @@
#include <process.h>
uint8_t pending_requests[256][CLIENT_ID_SIZE];
uint8_t num_requests;
uint8_t num_requests = 0;
char line[STRING_LENGTH];
char users_id[200];