Scope-eye.net Git Repository
/
liskon_frotz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33ced9
)
Fix improper way of checking for uninitialized string.
author
David Griffith
<dave@661.org>
Fri, 30 Aug 2019 22:39:04 +0000
(15:39 -0700)
committer
David Griffith
<dave@661.org>
Fri, 30 Aug 2019 22:39:04 +0000
(15:39 -0700)
src/curses/ux_input.c
patch
|
blob
|
history
diff --git
a/src/curses/ux_input.c
b/src/curses/ux_input.c
index 37801459924191f20271ef2cc73476fe1fcdfb95..5b93b3a0ecb4c9d79a333074d8cf0fa6be195bc0 100644
(file)
--- a/
src/curses/ux_input.c
+++ b/
src/curses/ux_input.c
@@
-917,7
+917,7
@@
char *os_read_file_name (const char *default_name, int flag)
* to show any path prepended to the actual file name. Here,
* we strip out that path and display only the filename.
*/
- if (f_setup.restricted_path) {
+ if (f_setup.restricted_path
!= NULL
) {
tempname = basename((char *)default_name);
print_string(tempname);
} else