diff options
author | Tad Marshall <tad@10gen.com> | 2012-12-25 20:00:42 -0500 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2012-12-25 20:00:42 -0500 |
commit | 80507d135a22723e95f5b1be9938c3bf5309d273 (patch) | |
tree | 4439d5974d08790198173025b4d747789fe2a2d8 /src/mongo | |
parent | 3854df8471a90e6a684d8bb60c195232f3a65e99 (diff) | |
download | mongo-80507d135a22723e95f5b1be9938c3bf5309d273.tar.gz |
SERVER-380 Fix access violation on Windows
Make copy of StringData passed to Tokenizer in case the original
was in a temporary.
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/fts/tokenizer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/fts/tokenizer.h b/src/mongo/db/fts/tokenizer.h index 5b9a56ed8d6..8c0e3a15bbf 100644 --- a/src/mongo/db/fts/tokenizer.h +++ b/src/mongo/db/fts/tokenizer.h @@ -59,7 +59,7 @@ namespace mongo { unsigned _pos; bool _previousWhiteSpace; - const StringData& _raw; + const StringData _raw; bool _english; }; |