mrirecon/bart

identical condition

maddin200 opened this issue · 2 comments

/src/nn/nn.c line 227
Code:
static int get_index_from_name(int N, const char* names[N], const char* name)
{
for (int i = 0; i < N; i++)
if ((names[i] != NULL) && (names[i] != NULL) && ((0 == strcmp(name, names[i])))) // <-- identical (names[i] != NULL)
return i;
return -1;
}

may be
if ((name != NULL) && (names[i] != NULL) && ((0 == strcmp(name, names[i]))))

Done. Thanks!