From bbb81a3e03f831b72ae4f2103320bbab6c0b6717 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Mon, 27 Apr 2009 13:36:17 -0700 Subject: [PATCH] cmon: redo remove backslash from end of line --- src/common/ConfUtils.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/ConfUtils.cc b/src/common/ConfUtils.cc index 4ed9923782091..50d73fcd59c27 100644 --- a/src/common/ConfUtils.cc +++ b/src/common/ConfUtils.cc @@ -552,12 +552,13 @@ bool ConfFile::_parse(char *filename, ConfSection **psection) for (i=0; i 0 && line[l-1] == '\\') + if (l > 0 && line[l-1] == '\\') { + l--; continue; + } line[l] = '\0'; cl = new ConfLine(); parse_line(line, cl); -- 2.39.5