summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remoting/tools/client_webserver/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/tools/client_webserver/main.c b/remoting/tools/client_webserver/main.c
index 3cc5c2b..6f7baba 100644
--- a/remoting/tools/client_webserver/main.c
+++ b/remoting/tools/client_webserver/main.c
@@ -78,7 +78,7 @@ void handle_request(int connection) {
// GET /index.html HTTP/1.1
read_text_data(connection, buffer, 512);
- char *saveptr;
+ char *saveptr = NULL;
char *request = strtok_r(buffer, " ", &saveptr);
char *resource = strtok_r(NULL, " ", &saveptr);
char *version = strtok_r(NULL, " ", &saveptr);