Fix get_bool again

This commit is contained in:
bnnm 2019-03-25 21:15:44 +01:00
parent c084a99337
commit 642613fac9

View File

@ -456,6 +456,7 @@ static int get_bool(const char * config, int *value) {
int n,m;
char temp;
n = 0; /* init as it's not matched if c isn't */
m = sscanf(config, " %c%n", &temp, &n);
if (m >= 1 && !(temp == '#' || temp == '\r' || temp == '\n'))
return 0; /* ignore if anything non-space/comment matched */