Allow empty lines in the configuration file.

This commit is contained in:
Andrea Mazzoleni 2011-06-21 21:34:58 +02:00
parent 371a9ab667
commit 7acaf53dc9
3 changed files with 5 additions and 4 deletions

View file

@ -111,6 +111,7 @@ void state_config(struct snapraid_state* state, const char* path, int verbose, i
/* here we use strtoken_trim() to eat extra spaces inserted by the user */
/* skip ending spaces */
--ret;
while (ret>0 && isspace(s[ret-1])) {
--ret;
s[ret] = 0;