diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 922da9f1da3..c09ad97a701 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -749,7 +749,11 @@ load_pdump_find_executable (char const *argv0, ptrdiff_t *candidate_size) | |||
| 749 | path already, so just copy it. */ | 749 | path already, so just copy it. */ |
| 750 | eassert (argv0); | 750 | eassert (argv0); |
| 751 | if (strchr (argv0, DIRECTORY_SEP)) | 751 | if (strchr (argv0, DIRECTORY_SEP)) |
| 752 | return xstrdup (argv0); | 752 | { |
| 753 | char *val = xstrdup (argv0); | ||
| 754 | *candidate_size = strlen (val) + 1; | ||
| 755 | return val; | ||
| 756 | } | ||
| 753 | ptrdiff_t argv0_length = strlen (argv0); | 757 | ptrdiff_t argv0_length = strlen (argv0); |
| 754 | 758 | ||
| 755 | const char *path = getenv ("PATH"); | 759 | const char *path = getenv ("PATH"); |