Fixed a critical bug where the elements names were not stored correctly
This commit is contained in:
@ -450,12 +450,6 @@ static int create_version_file(OBIDMS_column_directory_p column_directory)
|
||||
|
||||
int obi_column_set_elements_names(OBIDMS_column_p column, const char* elements_names)
|
||||
{
|
||||
(column->header)->elements_names = malloc(strlen(elements_names)*sizeof(char) + 1);
|
||||
if ((column->header)->elements_names == NULL)
|
||||
{
|
||||
obidebug(1, "\nError allocating the memory for elements names in an OBIDMS column");
|
||||
return -1;
|
||||
}
|
||||
strcpy((column->header)->elements_names, elements_names);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user