summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2014-06-03 17:53:24 +0200
committerDaniel Carl <danielcarl@gmx.de>2014-06-03 17:53:24 +0200
commitb0eb2fcb259752919ae62efbc629d5e26f5ba12b (patch)
treec7ab6bdc8e66c1f88cd01d6bbb23f01b47f091d2 /src/input.c
parentccf89e684d22285c4155a58e32f809f9a17088e4 (diff)
Use g_return_*() function to avoid programming issues.
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c
index 56f135c..7aa166a 100644
--- a/src/input.c
+++ b/src/input.c
@@ -83,7 +83,7 @@ VbResult input_open_editor(void)
GPid pid;
gboolean success;
- if (!vb.config.editor_command) {
+ if (!vb.config.editor_command || !*vb.config.editor_command) {
vb_echo(VB_MSG_ERROR, true, "No editor-command configured");
return RESULT_ERROR;
}