From: Yehuda Sadeh Date: Mon, 27 Apr 2009 20:36:17 +0000 (-0700) Subject: cmon: redo remove backslash from end of line X-Git-Tag: v0.7.3~46 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bbb81a3e03f831b72ae4f2103320bbab6c0b6717;p=ceph.git cmon: redo remove backslash from end of line --- diff --git a/src/common/ConfUtils.cc b/src/common/ConfUtils.cc index 4ed99237820..50d73fcd59c 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);