Return dgs.alc on success

2010-01-09  Ian Lance Taylor  <iant@google.com>

	PR other/42230
	* cp-demangle.c (d_demangle): Return dgs.alc on success.
This commit is contained in:
H.J. Lu 2010-01-10 01:19:02 +00:00
parent 9c744956e3
commit ffe7cfdf31
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-01-09 Ian Lance Taylor <iant@google.com>
PR other/42230
* cp-demangle.c (d_demangle): Return dgs.alc on success.
2010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
PR target/42316

View File

@ -4777,7 +4777,7 @@ d_demangle (const char *mangled, int options, size_t *palc)
return NULL;
}
*palc = dgs.allocation_failure ? 1 : 0;
*palc = dgs.allocation_failure ? 1 : dgs.alc;
return dgs.buf;
}