Add trim and trim_empty support to strsplit and update all callers

This commit is contained in:
Andrea Mazzoleni 2026-09-19 11:12:49 +02:00
parent 929ba5cebe
commit 8e66b42ceb
5 changed files with 163 additions and 23 deletions

View file

@ -837,7 +837,7 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
/* LCOV_EXCL_STOP */
}
split_mac = strsplit(split_map, SPLIT_MAX + 1, buffer, ",");
split_mac = strsplit(split_map, SPLIT_MAX + 1, buffer, ",", " \t\r\n", 0);
if (split_mac > SPLIT_MAX) {
/* LCOV_EXCL_START */