Commit 7f931c0e authored by Josh Borrow's avatar Josh Borrow
Browse files

Removed incorrect use of pointer to first char in a string

parent 2bc5691f
......@@ -363,8 +363,7 @@ void write_output_distributed(struct engine* e,
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
output_list_get_current_select_output(output_list,
&current_selection_name[0]);
output_list_get_current_select_output(output_list, current_selection_name);
}
/* Print the relevant information and print status */
......
......@@ -1110,8 +1110,7 @@ void prepare_file(struct engine* e, const char* fileName,
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
output_list_get_current_select_output(output_list,
&current_selection_name[0]);
output_list_get_current_select_output(output_list, current_selection_name);
}
/* Print the relevant information and print status */
......@@ -1788,7 +1787,7 @@ void write_output_parallel(struct engine* e,
/* Users could have specified a different Select Output scheme for each
* snapshot. */
output_list_get_current_select_output(output_list,
&current_selection_name[0]);
current_selection_name);
}
for (int i = 0; i < num_fields; ++i) {
......
......@@ -930,8 +930,7 @@ void write_output_serial(struct engine* e,
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
output_list_get_current_select_output(output_list,
&current_selection_name[0]);
output_list_get_current_select_output(output_list, current_selection_name);
}
/* Compute offset in the file and total number of particles */
......
......@@ -822,8 +822,7 @@ void write_output_single(struct engine* e,
if (output_list) {
/* Users could have specified a different Select Output scheme for each
* snapshot. */
output_list_get_current_select_output(output_list,
&current_selection_name[0]);
output_list_get_current_select_output(output_list, current_selection_name);
}
/* Print the relevant information and print status */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment