From cf90f247aceadb444297c3c66e2215e8c209ca69 Mon Sep 17 00:00:00 2001 From: Vedran Rodic Date: Sun, 28 Oct 2012 12:07:41 +0100 Subject: [PATCH] Fix a segfault caused by .desktop file with no exec= line. https://bugs.launchpad.net/ubuntu/+source/geeqie/+bug/1056532 --- src/editors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editors.c b/src/editors.c index 5931c056..1bf2553f 100644 --- a/src/editors.c +++ b/src/editors.c @@ -759,7 +759,7 @@ EditorFlags editor_command_parse(const EditorDescription *editor, GList *list, g if (output) result = g_string_new(""); - if (editor->exec[0] == '\0') + if (editor->exec == NULL || editor->exec[0] == '\0') { flags |= EDITOR_ERROR_EMPTY; goto err; -- 2.20.1