Diff between 8d5b21b9d7d0e443b3941db8f40f31d1833bef01 and bff5b432c2471655409e0560d0df99931d8878c0
Changed Files
| File | Additions | Deletions | Status |
| obexd/plugins/pbap.c | +3 | -0 | modified |
Full Patch
diff --git a/obexd/plugins/pbap.c b/obexd/plugins/pbap.c
index 5e06df3..fa03633 100644
--- a/obexd/plugins/pbap.c
+++ b/obexd/plugins/pbap.c
@@ -171,6 +171,9 @@ static gboolean entry_name_find(const struct cache_entry *entry,
if (!entry->name)
return FALSE;
+ if (strlen(value) == 0)
+ return TRUE;
+
name = g_utf8_strdown(entry->name, -1);
ret = (g_strstr_len(name, -1, value) ? TRUE : FALSE);
g_free(name);