[beast: 1/3] BSE: fix NULL access on LADSPA registration
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 1/3] BSE: fix NULL access on LADSPA registration
- Date: Tue, 10 Nov 2015 09:46:07 +0000 (UTC)
commit c07d93ada66c61dc5c1f47b5e83f3fd6d2302592
Author: Tim Janik <timj gnu org>
Date: Tue Nov 10 10:36:32 2015 +0100
BSE: fix NULL access on LADSPA registration
Reported-by: Stefan Westerfeld <stefan space twc de>
Signed-off-by: Tim Janik <timj gnu org>
bse/bsecategories.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bse/bsecategories.cc b/bse/bsecategories.cc
index 79984b5..8fbdee6 100644
--- a/bse/bsecategories.cc
+++ b/bse/bsecategories.cc
@@ -195,7 +195,7 @@ bse_categories_register (const gchar *category,
if (g_type_is_a (centry->type, BSE_TYPE_SOURCE))
{
// parse "/Modules////tag1/tag2/tag3///Title" into tags and title
- const char *name = i18n_category;
+ const char *name = i18n_category ? i18n_category : category;
if (strncmp (name, "/Modules/", 9) == 0)
name += 9;
while (name[0] == '/')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]