changeset 2676:7c02cad43a45

Fix #553:Desktop file without %f or %F crashes Geeqie https://github.com/BestImageViewer/geeqie/issues/553 A .desktop file without %f or %F and is a filter, will crash Geeqie. Check if filedata structure is null.
author Colin Clark <colin.clark@cclark.uk>
date Fri, 08 Dec 2017 11:45:30 +0000
parents 5580d9c6e929
children 2487552f9995
files src/editors.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/editors.c	Fri Dec 01 09:28:55 2017 +0000
+++ b/src/editors.c	Fri Dec 08 11:45:30 2017 +0000
@@ -1034,7 +1034,7 @@
 		args[n++] = command;
 		args[n] = NULL;
 
-		if ((ed->flags & EDITOR_DEST) && fd->change && fd->change->dest) /* FIXME: error handling */
+		if ((ed->flags & EDITOR_DEST) && fd && fd->change && fd->change->dest) /* FIXME: error handling */
 			{
 			g_setenv("GEEQIE_DESTINATION", fd->change->dest, TRUE);
 			}