Changeset 13789
- Timestamp:
- 2007-01-25T11:55:04+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/mgsearch.cpp
r13780 r13789 208 208 int doctextcallback(char *Doc, int ULen, int /*Freq*/, 209 209 float /*Weight*/, void * /*info*/) { 210 tempdoc = Doc; 210 if (Doc != NULL) { 211 // Make a copy of this string so we can unload the database without losing it 212 tempdoc = new char[ULen + 1]; 213 strcpy(tempdoc, Doc); 214 } 211 215 templen = ULen; 212 216 … … 521 525 inconvert.convert (output, status); 522 526 527 delete[] mgdoc; 523 528 return true; 524 529 }
Note:
See TracChangeset
for help on using the changeset viewer.