diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2018-10-20 20:04:42 -0700 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2018-10-20 20:04:50 -0700 |
commit | f7fbbb04c335cd844b97c80128145349854128f4 (patch) | |
tree | aa814d228f693e98d3b6e628f70bd1f38e1ac3d9 /src | |
parent | Merge pull request #678 from jonls/contributing-docs (diff) | |
download | redshift-ng-f7fbbb04c335cd844b97c80128145349854128f4.tar.gz redshift-ng-f7fbbb04c335cd844b97c80128145349854128f4.tar.bz2 redshift-ng-f7fbbb04c335cd844b97c80128145349854128f4.tar.xz |
Fixes #578: Allow hash as comment character
Diffstat (limited to 'src')
-rw-r--r-- | src/config-ini.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config-ini.c b/src/config-ini.c index c596f92..63c1f5e 100644 --- a/src/config-ini.c +++ b/src/config-ini.c @@ -14,7 +14,7 @@ You should have received a copy of the GNU General Public License along with Redshift. If not, see <http://www.gnu.org/licenses/>. - Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com> + Copyright (c) 2010-2018 Jon Lund Steffensen <jonlst@gmail.com> */ #ifdef HAVE_CONFIG_H @@ -184,7 +184,7 @@ config_ini_init(config_ini_state_t *state, const char *filepath) s[strcspn(s, "\r\n")] = '\0'; /* Skip comments and empty lines. */ - if (s[0] == ';' || s[0] == '\0') continue; + if (s[0] == ';' || s[0] == '#' || s[0] == '\0') continue; if (s[0] == '[') { /* Read name of section. */ |