]> git.lyx.org Git - features.git/commitdiff
fix replacement of multiple environment variables (result was not cleared for next...
authorJoost Verburg <joostverburg@users.sourceforge.net>
Wed, 16 Feb 2011 18:59:19 +0000 (18:59 +0000)
committerJoost Verburg <joostverburg@users.sourceforge.net>
Wed, 16 Feb 2011 18:59:19 +0000 (18:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37699 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/filetools.cpp

index 78255429d85d02a26f1ded87a3c953e18bf66a14..9b3fd80c49fe742b16ad76c51ae3494103e5ac4e 100644 (file)
@@ -546,9 +546,9 @@ string const replaceEnvironmentPath(string const & path)
 
        static regex envvar_br_re("(.*)" + envvar_br + "(.*)");
        static regex envvar_re("(.*)" + envvar + "(.*)");
-       smatch what;
        string result = path;
        while (1) {
+               smatch what;
                regex_match(result, what, envvar_br_re);
                if (!what[0].matched) {
                        regex_match(result, what, envvar_re);