start to insert errors at index 0

pull/23/head
Gerard Wagener 2018-11-27 16:41:26 +01:00
parent 94ef3750b5
commit 741018cc2b
1 changed files with 1 additions and 1 deletions

View File

@ -27,9 +27,9 @@ int d4_load_config(d4_t* d4)
} else {
d4->errno_copy = errno;
if ( d4->err_idx < SZERRVALUE ) {
d4->err_idx++;
snprintf(d4->errors[d4->err_idx], SZERRVALUE,
"Failed to load %s", d4params[i]);
d4->err_idx++;
}
}
}