forked from Imagelibrary/binutils-gdb
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user