Georg Baum wrote: > commit e5845fea49e6c8a2cae0dfd8c708a31ae3d67719 > Author: Georg Baum <b...@lyx.org> > Date: Mon Nov 17 22:08:21 2014 +0100 > > Fix memory error detected by valgrind > > The assignment name = sub.str(1) reads from the first argument given > to regex_match(), but previously this was a temporary object which was > already out of scope. This did probably not matter much in practice, > but invoked undefined behaviour, and as we all know this is allowed > ton format your hard disk or kill to your cat, so better fix this.
Richard, I'd like to put this in branch (after I searched for similar code and found a comment stating that I found exactly the same problem already some years ago I am not convinced anymore that this is harmless). OK? Georg