diff options
author | Jfreegman <Jfreegman@gmail.com> | 2013-07-31 05:52:08 -0400 |
---|---|---|
committer | Jfreegman <Jfreegman@gmail.com> | 2013-07-31 05:52:08 -0400 |
commit | 17e64b3ee50605cbc15f195f770dacf31039e121 (patch) | |
tree | 584da818bf21df81b75ab57cbe7a5c96ed39017c | |
parent | 207c067cf22d65cdfc08e8659fb8dd575e248053 (diff) |
initialize num_requests
-rw-r--r-- | testing/nTox.c | 3 | ||||
-rw-r--r-- | testing/nTox_win32.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index 5f184407..54f973d0 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -38,7 +38,7 @@ char line[STRING_LENGTH]; | |||
38 | int x, y; | 38 | int x, y; |
39 | 39 | ||
40 | uint8_t pending_requests[256][CLIENT_ID_SIZE]; | 40 | uint8_t pending_requests[256][CLIENT_ID_SIZE]; |
41 | uint8_t num_requests; | 41 | uint8_t num_requests = 0; |
42 | 42 | ||
43 | void new_lines(char *line) | 43 | void new_lines(char *line) |
44 | { | 44 | { |
@@ -57,6 +57,7 @@ void print_friendlist() | |||
57 | new_lines("[i] Friend List:"); | 57 | new_lines("[i] Friend List:"); |
58 | uint32_t i; | 58 | uint32_t i; |
59 | for (i = 0; i <= num_requests; i++) { | 59 | for (i = 0; i <= num_requests; i++) { |
60 | printf ("num_resusts: %d\n", num_requests); | ||
60 | char fstring[128]; | 61 | char fstring[128]; |
61 | 62 | ||
62 | getname(i, (uint8_t*)name); | 63 | getname(i, (uint8_t*)name); |
diff --git a/testing/nTox_win32.c b/testing/nTox_win32.c index 3286bb3a..27ab6a77 100644 --- a/testing/nTox_win32.c +++ b/testing/nTox_win32.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <process.h> | 27 | #include <process.h> |
28 | 28 | ||
29 | uint8_t pending_requests[256][CLIENT_ID_SIZE]; | 29 | uint8_t pending_requests[256][CLIENT_ID_SIZE]; |
30 | uint8_t num_requests; | 30 | uint8_t num_requests = 0; |
31 | 31 | ||
32 | char line[STRING_LENGTH]; | 32 | char line[STRING_LENGTH]; |
33 | char users_id[200]; | 33 | char users_id[200]; |