Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
bf643867
Commit
bf643867
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a variable, for aptness
parent
1b902d62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.c
+5
-4
src/files.c
with
5 additions
and
4 deletions
+5
-4
src/files.c
View file @
bf643867
...
...
@@ -1651,16 +1651,17 @@ bool check_operating_dir(const char *currpath, bool allow_tabcomp)
* messed up and I'm blanket allowing insecure file writing operations'. */
int
prompt_failed_backupwrite
(
const
char
*
filename
)
{
static
int
i
;
static
int
response
;
static
char
*
prevfile
=
NULL
;
/* What was the last file we were
* passed so we don't keep asking
* this? Though maybe we should... */
if
(
prevfile
==
NULL
||
strcmp
(
filename
,
prevfile
))
{
i
=
do_yesno_prompt
(
FALSE
,
_
(
"Failed to write backup file,
continue saving? (Say N if unsure) "
));
response
=
do_yesno_prompt
(
FALSE
,
_
(
"Failed to write backup file; "
"
continue saving? (Say N if unsure
.
) "
));
prevfile
=
mallocstrcpy
(
prevfile
,
filename
);
}
return
i
;
return
response
;
}
void
init_backup_dir
(
void
)
...
...
This diff is collapsed.
Click to expand it.
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