Julius Pfrommer 10 gadi atpakaļ
vecāks
revīzija
7752dc5ac6
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. 2 4
      src/ua_transport_binary_secure.c

+ 2 - 4
src/ua_transport_binary_secure.c

@@ -115,15 +115,13 @@ static UA_Int32 SL_Send(SL_Channel *channel,
 	return UA_SUCCESS;
 	return UA_SUCCESS;
 }
 }
 
 
-static void init_response_header(UA_RequestHeader const * p,
+static void init_response_header(UA_RequestHeader const * p, UA_ResponseHeader * r) {
-		UA_ResponseHeader * r)
-{
-	memset((void*) r, 0, sizeof(UA_ResponseHeader));
 	r->requestHandle = p->requestHandle;
 	r->requestHandle = p->requestHandle;
 	r->serviceResult = UA_STATUSCODE_GOOD;
 	r->serviceResult = UA_STATUSCODE_GOOD;
 	r->stringTableSize = 0;
 	r->stringTableSize = 0;
 	r->timestamp = UA_DateTime_now();
 	r->timestamp = UA_DateTime_now();
 }
 }
+
 #define RESPONSE_PREPARE(TYPE) \
 #define RESPONSE_PREPARE(TYPE) \
 	UA_##TYPE##Request p; \
 	UA_##TYPE##Request p; \
 	UA_##TYPE##Response r; \
 	UA_##TYPE##Response r; \