… | |
… | |
513 | |
513 | |
514 | /* We don't require a settings file at current time, but down the road, |
514 | /* We don't require a settings file at current time, but down the road, |
515 | * there will probably be so many values that not having a settings file |
515 | * there will probably be so many values that not having a settings file |
516 | * will not be a good thing. |
516 | * will not be a good thing. |
517 | */ |
517 | */ |
518 | if ((fp = open_and_uncompress (buf, 0, &comp)) == NULL) |
518 | if (!(fp = open_and_uncompress (buf, 0, &comp))) |
519 | { |
519 | { |
520 | LOG (llevError, "Warning: No settings file found\n"); |
520 | LOG (llevError, "Error: No settings file found\n"); |
521 | return; |
521 | exit (1); |
522 | } |
522 | } |
|
|
523 | |
523 | while (fgets (buf, MAX_BUF - 1, fp) != NULL) |
524 | while (fgets (buf, MAX_BUF - 1, fp) != NULL) |
524 | { |
525 | { |
525 | if (buf[0] == '#') |
526 | if (buf[0] == '#') |
526 | continue; |
527 | continue; |
527 | /* eliminate newline */ |
528 | /* eliminate newline */ |