Changeset 19365

Show
Ignore:
Timestamp:
11.05.2009 13:09:39 (10 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed the bug that crashed server.exe when there's no MG built collection: mgsearch (and mgppsearch and lucenesearch) pointers weren't initialised to NULL in the constructors, yet they were tested against being NULL and then used.

Location:
gsdl/trunk/runtime-src/src/colservr
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/colservr/collectset.cpp

    r18978 r19365  
    6161  text_tarray collections; 
    6262 
     63  mgsearch = NULL; 
     64  mgppsearch = NULL; 
     65  lucenesearch = NULL; 
     66 
    6367  // get gsdlhome (if we fail the error will be picked up later -- in 
    6468  // cgiwrapper) 
     
    9599{ 
    96100  httpprefix = httpprefix_arg; 
    97 } 
    98  
     101 
     102  mgsearch = NULL; 
     103  mgppsearch = NULL; 
     104  lucenesearch = NULL; 
     105 
     106} 
     107 
     108collectset::collectset () 
     109{ 
     110  mgsearch = NULL; 
     111  mgppsearch = NULL; 
     112  lucenesearch = NULL; 
     113} 
    99114 
    100115collectset::~collectset () { 
  • gsdl/trunk/runtime-src/src/colservr/collectset.h

    r17989 r19365  
    3232 
    3333  // this constructor is used by the local library 
    34   collectset() {} 
     34  collectset(); 
    3535 
    3636  ~collectset();