mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix instance number check
This commit is contained in:
parent
97320a95ab
commit
09f95d7edd
1 changed files with 3 additions and 3 deletions
|
|
@ -615,10 +615,10 @@ int get_number_of_entries(struct dmctx *ctx, void *data, char *instance, int (*b
|
||||||
for (int idx = 0; idx < count - 1; idx++) {
|
for (int idx = 0; idx < count - 1; idx++) {
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
bool is_instance = false;
|
bool is_instance = true;
|
||||||
while (parts[idx][i] != 0) {
|
while (parts[idx][i] != 0) {
|
||||||
if (isdigit(parts[idx][i]) != 0) {
|
if (isdigit(parts[idx][i]) == false) {
|
||||||
is_instance = true;
|
is_instance = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue