forked from Imagelibrary/binutils-gdb
Fix find_charset_names.
The patch f2aec7f6d1 changed the return type of relocate_gdb_directory to
std::string, but the change is not reflected in find_charset_names function.
(Probably missed because the broken code is behind an #ifdef).
gdb/ChangeLog
* charset.c (find_charset_names): Reflect API change.
This commit is contained in:
@@ -816,10 +816,9 @@ find_charset_names (void)
|
||||
|
||||
#ifdef ICONV_BIN
|
||||
{
|
||||
char *iconv_dir = relocate_gdb_directory (ICONV_BIN,
|
||||
ICONV_BIN_RELOCATABLE);
|
||||
iconv_program = concat (iconv_dir, SLASH_STRING, "iconv", NULL);
|
||||
xfree (iconv_dir);
|
||||
std::string iconv_dir = relocate_gdb_directory (ICONV_BIN,
|
||||
ICONV_BIN_RELOCATABLE);
|
||||
iconv_program = concat (iconv_dir.c_str(), SLASH_STRING, "iconv", NULL);
|
||||
}
|
||||
#else
|
||||
iconv_program = xstrdup ("iconv");
|
||||
|
||||
Reference in New Issue
Block a user