Small Bug in TString

From: Victor Perevoztchikov (perev@bnl.gov)
Date: Wed Sep 09 1998 - 23:13:13 MEST


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;



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET