From: Bastian Dehn Date: Fri, 22 Mar 2024 17:44:30 +0000 (+0100) Subject: resp init with null terminate X-Git-Tag: v1.0.0^2~70^2~5 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=44edd60fb5476ae362cc9623bd92872fc766213b;p=sane-kds-s2000w-net.git resp init with null terminate --- diff --git a/src/kds_s2000w_client.c b/src/kds_s2000w_client.c index 8a12d08..f420854 100644 --- a/src/kds_s2000w_client.c +++ b/src/kds_s2000w_client.c @@ -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;