mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-14 23:40:39 -08:00
; * src/emacs.c (load_pdump_find_executable): Yet another fix.
This commit is contained in:
parent
af0af63742
commit
cc2d2e8d6c
1 changed files with 5 additions and 1 deletions
|
|
@ -749,7 +749,11 @@ load_pdump_find_executable (char const *argv0, ptrdiff_t *candidate_size)
|
|||
path already, so just copy it. */
|
||||
eassert (argv0);
|
||||
if (strchr (argv0, DIRECTORY_SEP))
|
||||
return xstrdup (argv0);
|
||||
{
|
||||
char *val = xstrdup (argv0);
|
||||
*candidate_size = strlen (val) + 1;
|
||||
return val;
|
||||
}
|
||||
ptrdiff_t argv0_length = strlen (argv0);
|
||||
|
||||
const char *path = getenv ("PATH");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue