diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 4eca88e8..d094a0c9 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -248,7 +248,7 @@ int gdb_put_packet(connection_t *connection, char *buffer, int len) int gdb_get_packet(connection_t *connection, char *buffer, int *len) { int character; - int count = 0; + int count; int retval; char checksum[3]; unsigned char my_checksum = 0; @@ -286,6 +286,7 @@ int gdb_get_packet(connection_t *connection, char *buffer, int *len) } while (character != '$'); my_checksum = 0; + count = 0; for (;;) { |