Ticket #3020: segfault on creating new file in external editor

Fixes for compiling code without warnings and errors when the --disable-editor option is specified

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2013-06-13 13:58:00 +03:00
parent 3f4397f812
commit 9d081bec5a
2 changed files with 7 additions and 1 deletions

View File

@ -790,6 +790,8 @@ do_edit_at_line (const vfs_path_t * what_vpath, gboolean internal, long start_li
else
#endif /* USE_INTERNAL_EDIT */
{
(void) internal;
if (editor == NULL)
{
editor = getenv ("EDITOR");

View File

@ -1,4 +1,8 @@
SUBDIRS = . editor filemanager
SUBDIRS = . filemanager
if USE_EDIT
SUBDIRS += editor
endif
AM_CPPFLAGS = \
$(GLIB_CFLAGS) \