Small Bug in TString

Victor Perevoztchikov (perev@bnl.gov)
Wed, 09 Sep 1998 17:13:13 -0400


Hi Rene & Fons,
It seems me there is small bug in TString.
Example:

root [0] TString S
root [1] const char *c
root [2] S = "ABC"
(class TString)139970776
root [3] c = S
(char* 0x855d614)"ABC"
root [4] S = 0
(class TString)139970776
root [5] c = S
(char* 0x401089bc)""

Still OK

root [6] S = (char*)0

*** Break *** segmentation violation

So assignament by zero pointer to TString does not work.
But this is very ordinary operation.
It does not work in compiled (not CINT) version as well.

Victor

-- 
Victor M. Perevoztchikov   perev@bnl.gov  perev@vxcern.cern.ch       
Brookhaven National Laboratory MS 510A PO Box 5000 Upton NY 11973-5000
tel office : 516-344-7894; fax 516-344-4206;