diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-01-10 01:19:02 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-01-10 01:19:02 +0000 |
commit | ffe7cfdf3170254a6bc8c5f5e9f946005b923165 (patch) | |
tree | 890f5f9b898bae6630eb908fb8acbf325f0d22af /libiberty/cp-demangle.c | |
parent | 9c744956e3017bf574581033e4f62e09cb7cf066 (diff) | |
download | gdb-ffe7cfdf3170254a6bc8c5f5e9f946005b923165.zip gdb-ffe7cfdf3170254a6bc8c5f5e9f946005b923165.tar.gz gdb-ffe7cfdf3170254a6bc8c5f5e9f946005b923165.tar.bz2 |
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.
Diffstat (limited to 'libiberty/cp-demangle.c')
-rw-r--r-- | libiberty/cp-demangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index 43cf34a..d37c90e 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -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; } |