]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
init response with null terminate
authorBastian Dehn <hhaalo@arcor.de>
Wed, 20 Mar 2024 14:41:01 +0000 (15:41 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 20 Mar 2024 14:41:01 +0000 (15:41 +0100)
src/kds_s2000w_client.c

index ef189e1b99fdeeb345476576075fe4fc0cd38a1c..09f2b30bb53a12deaacaf1f2278bafcf8a185425 100644 (file)
@@ -44,6 +44,7 @@ response* kds_s2000w_client_response_init()
        response* resp = NULL;
        resp = malloc(sizeof(response));
        resp->data = malloc(sizeof(char));
+       resp->data = '\0';
        resp->size = 0;
        resp->code = 0L;