Fix improper way of checking for uninitialized string.
authorDavid Griffith <dave@661.org>
Fri, 30 Aug 2019 22:39:04 +0000 (15:39 -0700)
committerDavid Griffith <dave@661.org>
Fri, 30 Aug 2019 22:39:04 +0000 (15:39 -0700)
src/curses/ux_input.c

index 37801459924191f20271ef2cc73476fe1fcdfb95..5b93b3a0ecb4c9d79a333074d8cf0fa6be195bc0 100644 (file)
@@ -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