浏览代码

cosmetif simplification of a callback

Stasik0 10 年之前
父节点
当前提交
ff695ceada
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/server/ua_server.c

+ 0 - 3
src/server/ua_server.c

@@ -215,10 +215,7 @@ static UA_StatusCode readCurrentTime(void *handle, UA_Boolean sourceTimeStamp, U
         return UA_STATUSCODE_BADOUTOFMEMORY;
     *currentTime = UA_DateTime_now();
     value->value.type = &UA_TYPES[UA_TYPES_DATETIME];
-    value->value.arrayLength = -1;
     value->value.data = currentTime;
-    value->value.arrayDimensionsSize = -1;
-    value->value.arrayDimensions = NULL;
     value->hasValue = UA_TRUE;
     if(sourceTimeStamp) {
         value->hasSourceTimestamp = UA_TRUE;