Diff between 2cb7b3a0321a7eced58b20ba79d56862c3c4356e and 449bb25519158a87f9f547841c87fbd1cdb69dc1
Changed Files
| File | Additions | Deletions | Status |
| src/profile.c | +6 | -2 | modified |
Full Patch
diff --git a/src/profile.c b/src/profile.c
index 70ee4c1..49445d7 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -742,10 +742,14 @@ static struct ext_profile *find_ext_profile(const char *owner,
for (l = ext_profiles; l != NULL; l = g_slist_next(l)) {
struct ext_profile *ext = l->data;
- if (!g_str_equal(ext->owner, owner))
+ /*
+ * Owner and path can be NULL if profile was registered by a
+ * plugin using external flag.
+ */
+ if (g_strcmp0(ext->owner, owner))
continue;
- if (g_str_equal(ext->path, path))
+ if (!g_strcmp0(ext->path, path))
return ext;
}