Skip to content

Commit bbc48de

Browse files
committed
Make strchr compare string to a char instead of to a string
1 parent 55db3fd commit bbc48de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mcstas-comps/contrib/Monochromator_bent_complex.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ INITIALIZE
137137

138138
char* input_string = NULL;
139139

140-
if (strchr (plane_of_reflection, ";") == NULL && n_crystals > 1) {
140+
if (strchr (plane_of_reflection, ';') == NULL && n_crystals > 1) {
141141
// Apply the same plane to all crystals
142142
input_string = repeat_with_semicolon (plane_of_reflection, n_crystals);
143143
} else {

0 commit comments

Comments
 (0)