also do it on the first line

This commit is contained in:
Benji Dial 2022-03-20 20:38:37 -04:00 committed by mintsuki
parent 525caaabca
commit 50c61ff0a7

View File

@ -151,7 +151,8 @@ int init_config(size_t config_size) {
for (size_t i = 0; i < config_size; i++) {
size_t skip = 0;
while ((config_addr[i + skip] == '\r')
|| (i && config_addr[i - 1] == '\n' && config_addr[i + skip] == ' ')) {
|| ((!i || config_addr[i - 1] == '\n')
&& config_addr[i + skip] == ' ')) {
skip++;
}
if (skip) {