mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-10 13:40:36 -08:00
Tweak Fdirectory_append slightly
* src/fileio.c (Fdirectory_append): Make the xfree condition more robust.
This commit is contained in:
parent
ba918ecb78
commit
6becc97433
1 changed files with 2 additions and 2 deletions
|
|
@ -827,11 +827,11 @@ usage: (record DIRECTORY &rest COMPONENTS) */)
|
|||
memcpy (p, SSDATA (arg), SBYTES (arg));
|
||||
p += SBYTES (arg);
|
||||
/* The last element shouldn't have a slash added at the end. */
|
||||
if (i < nargs -1 && !IS_DIRECTORY_SEP (*(p - 1)))
|
||||
if (i < nargs - 1 && !IS_DIRECTORY_SEP (*(p - 1)))
|
||||
*p++ = DIRECTORY_SEP;
|
||||
}
|
||||
|
||||
if (multibytes != 0 && multibytes != nargs)
|
||||
if (elements != args)
|
||||
xfree (elements);
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue