aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termcmd.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@profusion.mobi>2012-08-23 05:58:06 +0000
committerLeandro Pereira <leandro@profusion.mobi>2012-08-23 05:58:06 +0000
commitdb0f11758dd03f5e11463a0e93c42fd0d7f00130 (patch)
treef47ae672ad8661883850f607616ddb8de3b7e40c /src/bin/termcmd.c
parentterminology: Use a lookup table for g[0-8] commands (diff)
downloadterminology-db0f11758dd03f5e11463a0e93c42fd0d7f00130.tar.gz
terminology: Ignore empty commands
SVN revision: 75590
Diffstat (limited to 'src/bin/termcmd.c')
-rw-r--r--src/bin/termcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termcmd.c b/src/bin/termcmd.c
index fbdeef5..8207d73 100644
--- a/src/bin/termcmd.c
+++ b/src/bin/termcmd.c
@@ -134,7 +134,7 @@ termcmd_watch(Evas_Object *obj, Evas_Object *win, Evas_Object *bg, const char *c
Eina_Bool
termcmd_do(Evas_Object *obj, Evas_Object *win, Evas_Object *bg, const char *cmd)
{
- if (!cmd) return EINA_FALSE;
+ if (!cmd || !cmd[0]) return EINA_FALSE;
if ((cmd[0] == '/') || (cmd[0] == 's'))
return _termcmd_search(obj, win, bg, cmd + 1);
if ((cmd[0] == 'f') || (cmd[0] == 'F'))