Skip to content
Snippets Groups Projects
Commit d70cc021 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Clarify assignment.

parent 5469d07e
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -287,8 +287,7 @@ cdi_create_records(stream_t *streamptr, int tsID)
}
// printf("tsID, nrecords %d %d\n", tsID, nrecords);
record_t *records = NULL;
if (maxrecords > 0) records = (record_t *) Malloc(maxrecords * sizeof(record_t));
record_t *records = maxrecords > 0 ? (record_t *) (Malloc(maxrecords * sizeof(record_t))) : (record_t *) NULL;
destTstep->records = records;
destTstep->recordSize = (int) maxrecords;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment