From 3a48a725ec4ebf34234c63e306c42f8def005214 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Fri, 14 Aug 2009 16:28:00 +0000 Subject: [PATCH] 'everything' module: fix bug in tracker plugin SVN revision: 41767 --- src/modules/everything/evry.c | 2 +- src/modules/everything/evry_plug_tracker.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/everything/evry.c b/src/modules/everything/evry.c index af573f42cb..d8f48dde4f 100644 --- a/src/modules/everything/evry.c +++ b/src/modules/everything/evry.c @@ -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++) { diff --git a/src/modules/everything/evry_plug_tracker.c b/src/modules/everything/evry_plug_tracker.c index 973c3e1d25..43b4449edf 100644 --- a/src/modules/everything/evry_plug_tracker.c +++ b/src/modules/everything/evry_plug_tracker.c @@ -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; -- 2.34.1