handlers for header_len and write_headr in conn
FossilOrigin-Name: 672de93a2c0d038b6d8c9104a8e0b4fdacbe7f181485ee2f185cb81626876391
This commit is contained in:
@ -21,11 +21,12 @@ int cw_ktv_write_struct(mavl_t ktv, const cw_KTVStruct_t * stru, const char *pke
|
||||
result = cw_ktv_get(ktv,key,stru[i].type);
|
||||
|
||||
if (result == NULL){
|
||||
cw_log(LOG_ERR,"Can't put %s, no value found",key);
|
||||
continue;
|
||||
cw_log(LOG_ERR,"Can't put %s, no value found, filling zero.",key);
|
||||
memset(dst+pos,0,stru[i].len);
|
||||
}
|
||||
else{
|
||||
result->type->put(result,dst+pos);
|
||||
}
|
||||
|
||||
result->type->put(result,dst+pos);
|
||||
|
||||
pos+=stru[i].len;
|
||||
|
||||
|
Reference in New Issue
Block a user