Hi,

I have another question concerning the string-buffer/string-desc
modules. The code

struct string_buffer sb[1];
sb_init (sb);
sb_xdupfree (sb);

gives a "memory exhausted" error (through xalloc_die). I found this
surprising, at the very least.

After studying the implementation, it is clear to me why this happens,
but it seems to me that the expected result, namely that sb_xdupfree
(sb) returns a string descriptor for the empty string, would be the
better semantics.

Can this be fixed? Or is there something I overlooked?

Thanks,

Marc

Reply via email to