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 /testing/nTox.c | |
parent | 207c067cf22d65cdfc08e8659fb8dd575e248053 (diff) |
initialize num_requests
Diffstat (limited to 'testing/nTox.c')
-rw-r--r-- | testing/nTox.c | 3 |
1 files changed, 2 insertions, 1 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); |