mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-23 18:26:47 +08:00
Remove gdb/python/python.c code that handles strlen failing with -1
This makes no sense -- strlen doesn't really ever fail with -1. gdb/ChangeLog: 2016-05-03 Pedro Alves <palves@redhat.com> * python/python.c (_initialize_python) [IS_PY3K]: Remove dead code.
This commit is contained in:
@ -1711,11 +1711,6 @@ message == an error message without a stack will be printed."),
|
||||
oldloc = setlocale (LC_ALL, NULL);
|
||||
setlocale (LC_ALL, "");
|
||||
progsize = strlen (progname);
|
||||
if (progsize == (size_t) -1)
|
||||
{
|
||||
fprintf (stderr, "Could not convert python path to string\n");
|
||||
return;
|
||||
}
|
||||
progname_copy = (wchar_t *) PyMem_Malloc ((progsize + 1) * sizeof (wchar_t));
|
||||
if (!progname_copy)
|
||||
{
|
||||
|
Reference in New Issue
Block a user