From f7fbbb04c335cd844b97c80128145349854128f4 Mon Sep 17 00:00:00 2001
From: Jon Lund Steffensen <jonlst@gmail.com>
Date: Sat, 20 Oct 2018 20:04:42 -0700
Subject: Fixes #578: Allow hash as comment character

---
 src/config-ini.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/config-ini.c')

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. */
-- 
cgit v1.2.3-70-g09d2