forked from cory/tildefriends
Prefer tf_resize_vec many places over tf_realloc.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4805 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -57,7 +57,7 @@ void tf_serialize_store(tf_task_t* task, tf_taskstub_t* to, void** out_buffer, s
|
||||
tf_trace_begin(trace, "tf_serialize_store");
|
||||
buffer_t tmp = { 0 };
|
||||
_serialize_store(task, to, &tmp, value);
|
||||
tmp.data = tf_realloc(tmp.data, tmp.size);
|
||||
tmp.data = tf_resize_vec(tmp.data, tmp.size);
|
||||
*out_buffer = tmp.data;
|
||||
*out_size = tmp.size;
|
||||
tf_trace_end(trace);
|
||||
|
Reference in New Issue
Block a user