]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
response not init value
authorBastian Dehn <hhaalo@arcor.de>
Sat, 23 Mar 2024 09:22:42 +0000 (10:22 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 23 Mar 2024 09:22:42 +0000 (10:22 +0100)
src/kds_s2000w_client.c

index 31b977b99ef37b41094d38a624d064abe599a008..09921d9e39d4a3a84eb5b6546e03709ae248adb2 100644 (file)
@@ -43,8 +43,8 @@ response* kds_s2000w_client_response_init()
 
        response* resp = NULL;
 
-       resp = malloc(sizeof(response) + sizeof(char));
-       resp->data = '\0';
+       resp = malloc(sizeof(response));
+       resp->data = malloc(sizeof(char));
        resp->size = 0;
        resp->code = 0L;