]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
resp init with null terminate
authorBastian Dehn <hhaalo@arcor.de>
Fri, 22 Mar 2024 17:44:30 +0000 (18:44 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 22 Mar 2024 17:44:30 +0000 (18:44 +0100)
src/kds_s2000w_client.c

index 8a12d086c7585241c54a24bce72adf6276adeb3c..f4208547bd26b80a7ac86f24f863dcad3dffbc91 100644 (file)
@@ -45,6 +45,7 @@ response* kds_s2000w_client_response_init()
 
        resp = malloc(sizeof(response));
        resp->data = malloc(sizeof(char));
+       resp->data = '\0';
        resp->size = 0;
        resp->code = 0L;