code from the glibc demangler is buggy, but because we use a malloc()
that never returns NULL, this code is actually ok within Valgrind, albeit
strange. I changed it to avoid possible confusion.)
Reported by Madhu Kurup.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3805
int length;
{
string_list_t s = (string_list_t) malloc (sizeof (struct string_list_def));
- s->caret_position = 0;
if (s == NULL)
return NULL;
+ s->caret_position = 0;
if (!dyn_string_init ((dyn_string_t) s, length))
return NULL;
return s;