Christoph Kies wrote:
Hello everybody,
Calling XMLString::transcode() with a NULL Argument, lets my Programm exit
immediately with code 0, no segmantation fault - no exception - no error.
Is this a bug?
I don't know what you mean by "lets my Programm exit immediately," but
if you mean XMLString::transcode() calls the exit() function, then
that's a bug, although I find it hard to believe.
If however, you mean that XMLString::transcode() does not fail when you
pass a null pointer for the source argument, then that makes sense. If
you look at the source code, you'll find this is deliberate behavior.
It may not seem correct to you, but it's been that way too long for it
to be changed.
Dave