aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mate/mate_setup.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-02-19 03:10:50 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-02-19 03:10:50 +0000
commite2e5536fef2f47e32b253481600e95120be4543e (patch)
treeb1eac9b83021ee29f0ce9b38083472df73a43f36 /plugins/mate/mate_setup.c
parentc2f7b07a5ab1b74e7e5e766988380fc88fef1ab5 (diff)
In order to avoid a crash at reanalize_gop(), do not accept a GogKey where the Gop has not yet being declared.
svn path=/trunk/; revision=13429
Diffstat (limited to 'plugins/mate/mate_setup.c')
-rw-r--r--plugins/mate/mate_setup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mate/mate_setup.c b/plugins/mate/mate_setup.c
index 638745a783..4852776ae6 100644
--- a/plugins/mate/mate_setup.c
+++ b/plugins/mate/mate_setup.c
@@ -905,6 +905,11 @@ static gboolean config_gogkey(AVPL* avpl) {
return FALSE;
}
+ if (! g_hash_table_lookup(matecfg->gopcfgs,on) ) {
+ report_error("MATE: GogKey: no such Gop %s in On",on);
+ return FALSE;
+ }
+
rename_avpl(avpl,name);
gogkeys = (LoAL*) g_hash_table_lookup(matecfg->gogs_by_gopname,on);