]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
set first byte of response to zero
authorBastian Dehn <hhaalo@arcor.de>
Sat, 4 Jan 2025 07:10:14 +0000 (08:10 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 4 Jan 2025 07:10:14 +0000 (08:10 +0100)
src/kds_s2000w_client.c

index 4f2bddac686038532ab0a397c46f15759f15924a..52d11faf439b2f8de46e49fa5f494eebcffb6462 100644 (file)
@@ -74,6 +74,7 @@ response* kds_s2000w_client_response_init()
        response* resp = malloc(sizeof(response));
        resp->data = malloc(sizeof(char));
        resp->error_status = malloc(sizeof(char));
+       resp->data[0] = '\0';
        resp->size = 0;
        resp->code = 0L;
        resp->error_size = 0;