[med-svn] [aghermann] 03/24: be explicit with string types when dealing with libconfig++ operator[]

andrei zavada hmmr-guest at moszumanska.debian.org
Mon Jun 15 01:48:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit 98e1bbd7eb7ddf8596483ebaa4e69164f8d46e72
Author: Andrei Zavada <hmmr at ra>
Date:   Thu Jun 11 03:39:36 2015 +0300

    be explicit with string types when dealing with libconfig++ operator[]
---
 upstream/src/common/config-validate.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/upstream/src/common/config-validate.hh b/upstream/src/common/config-validate.hh
index 004d1be..3ff540f 100644
--- a/upstream/src/common/config-validate.hh
+++ b/upstream/src/common/config-validate.hh
@@ -57,7 +57,7 @@ ensure_path( libconfig::Setting& S, libconfig::Setting::Type type, const string&
                 if ( not Si->exists(*K) ) {
                         Si = &Si->add( *K, (next(K) == pe.end()) ? type : libconfig::Setting::TypeGroup);
                 } else
-                        Si = &(*Si)[*K];
+                        Si = &(*Si)[K->c_str()];
         return *Si;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list