[vdr] Re: cString operator= with same buffer

Holger Brunn holger.brunn at stud.uni-karlsruhe.de
Tue Nov 22 10:33:05 CET 2005

> I think something should be done to fix the "assign cString to itself"
> case, even though this is very unlikely. This does go wrong with the
> current code, even with the copy constructor added.

Okay, now as all seems to be said, here is a patch that checks for that case 
(that may happen when working with references/pointers to cStrings), leaving 
Klaus with the decision whether it's useful to have it or not.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-cstring-equalrefs.diff
Type: text/x-diff
Size: 357 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20051122/462efe64/vdr-cstring-equalrefs-0001.bin

More information about the vdr mailing list