Fix a segfault caused by .desktop file with no exec= line.
[geeqie.git] / src / editors.c
index 5931c05..1bf2553 100644 (file)
@@ -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;