From: Bastian Dehn Date: Wed, 20 Mar 2024 14:41:01 +0000 (+0100) Subject: init response with null terminate X-Git-Tag: v1.0.0^2~72^2~8 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=e4f1b268d3fefbd8cb8b67bdb9b58d4c8eb94a19;p=sane-kds-s2000w-net.git init response with null terminate --- diff --git a/src/kds_s2000w_client.c b/src/kds_s2000w_client.c index ef189e1..09f2b30 100644 --- a/src/kds_s2000w_client.c +++ b/src/kds_s2000w_client.c @@ -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;