identical condition
maddin200 opened this issue · 2 comments
maddin200 commented
/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;
}
maddin200 commented
may be
if ((name != NULL) && (names[i] != NULL) && ((0 == strcmp(name, names[i]))))
uecker commented
Done. Thanks!