Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7a3cddef
Commit
7a3cddef
authored
Sep 02, 2008
by
Andreas Schwab
Browse files
(Fexpand_file_name): Remove unused variables.
parent
9850eff5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
src/ChangeLog
src/ChangeLog
+4
-0
src/fileio.c
src/fileio.c
+0
-8
No files found.
src/ChangeLog
View file @
7a3cddef
2008-09-02 Andreas Schwab <schwab@suse.de>
* fileio.c (Fexpand_file_name): Remove unused variables.
2008-09-02 Eli Zaretskii <eliz@gnu.org>
* fileio.c (Fexpand_file_name): Copy argument `name' into local
...
...
src/fileio.c
View file @
7a3cddef
...
...
@@ -824,7 +824,6 @@ See also the function `substitute-in-file-name'. */)
/* These point to SDATA and need to be careful with string-relocation
during GC (via DECODE_FILE). */
unsigned
char
*
nm
,
*
newdir
;
int
nm_in_name
;
/* This should only point to alloca'd data. */
unsigned
char
*
target
;
...
...
@@ -930,11 +929,9 @@ See also the function `substitute-in-file-name'. */)
}
nm
=
SDATA
(
name
);
nm_in_name
=
1
;
/* Make a local copy of nm[] to protect it from GC in DECODE_FILE below. */
nm
=
strcpy
(
alloca
(
strlen
(
nm
)
+
1
),
nm
);
nm_in_name
=
0
;
#ifdef DOS_NT
/* Note if special escape prefix is present, but remove for now. */
...
...
@@ -1077,13 +1074,8 @@ See also the function `substitute-in-file-name'. */)
tem
=
build_string
(
newdir
);
if
(
!
STRING_MULTIBYTE
(
tem
))
{
/* FIXME: DECODE_FILE may GC, which may move SDATA(name),
after which `nm' won't point to the right place any more. */
int
offset
=
nm
-
SDATA
(
name
);
hdir
=
DECODE_FILE
(
tem
);
newdir
=
SDATA
(
hdir
);
if
(
nm_in_name
)
nm
=
SDATA
(
name
)
+
offset
;
}
#ifdef DOS_NT
collapse_newdir
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment