aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-01-17 16:39:08 +1000
committerDavid Walter Seikel2016-01-17 16:39:08 +1000
commit78c107040170734fe8452eeee3a3284767634c33 (patch)
tree31ca89d66900424a5a1909476f545992373aa0bb
parentUpdated build instructions. (diff)
downloadSledjHamr-78c107040170734fe8452eeee3a3284767634c33.zip
SledjHamr-78c107040170734fe8452eeee3a3284767634c33.tar.gz
SledjHamr-78c107040170734fe8452eeee3a3284767634c33.tar.bz2
SledjHamr-78c107040170734fe8452eeee3a3284767634c33.tar.xz
Catch "return ..." as well as "function(...".
-rw-r--r--src/libraries/SledjHamr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libraries/SledjHamr.c b/src/libraries/SledjHamr.c
index 2fb9019..dff80ee 100644
--- a/src/libraries/SledjHamr.c
+++ b/src/libraries/SledjHamr.c
@@ -198,6 +198,8 @@ static Eina_Bool parseStream(void *data, int type, void *evData, int evSize, voi
198 ext[0] = '\0'; 198 ext[0] = '\0';
199 command = ext + 1; 199 command = ext + 1;
200 ext = index(command, '('); 200 ext = index(command, '(');
201 if (NULL == ext)
202 ext = index(command, ' ');
201 if (ext) 203 if (ext)
202 { 204 {
203 streamParser func = eina_hash_find(conn->commands, command); 205 streamParser func = eina_hash_find(conn->commands, command);