'everything' module: fix bug in tracker plugin
authorHannes Janetzek <hannes.janetzek@gmail.com>
Fri, 14 Aug 2009 16:28:00 +0000 (16:28 +0000)
committerHannes Janetzek <hannes.janetzek@gmail.com>
Fri, 14 Aug 2009 16:28:00 +0000 (16:28 +0000)
SVN revision: 41767

src/modules/everything/evry.c
src/modules/everything/evry_plug_tracker.c

index af573f42cba59f76822d9d4c69aed357cc8007bf..d8f48dde4f085486f630e4ca4b9a10ccff060f93 100644 (file)
@@ -462,7 +462,7 @@ evry_fuzzy_match(const char *str, const char *match)
    unsigned int last = 0;
    unsigned char first;
 
-   if (!match || !match[0] || !str || !str[0]) return 0;
+   if (!match || !str) return 0;
 
    for (m = match; *m != 0; m++)
      {
index 973c3e1d250a8ef83947d7ed050a2ac0084c3cb5..43b4449edf9c30e507db95e430461df9e870ede0 100644 (file)
@@ -206,7 +206,7 @@ _dbus_cb_reply(void *data, DBusMessage *msg, DBusError *error)
      }
    else if (inst->items && inst->input)
      {
-       int len_matched = strlen(inst->matched);
+       int len_matched = (inst->matched ? strlen(inst->matched) : 0);
        int len_input = strlen(inst->input);
        Eina_List *l;