diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-17 00:52:46 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-17 00:52:46 +0000 |
commit | 5e9225698c26c20c40c164f106156b286a04c660 (patch) | |
tree | 19942ee0cbb77d560145bb80d7e11b3e0eafd770 | |
parent | 3d9dea2bf517ae7e0a67f9e41b6dcc91b65df135 (diff) |
ici/ici.c (invoke_named_callbacks): If the callback doesn't exist,
return PLUGEVT_NO_SUCH_EVENT.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ici-20091108-branch@154233 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ici/ici.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/ici/ici.c b/gcc/ici/ici.c index e483d95a5c1..6ea72641577 100644 --- a/gcc/ici/ici.c +++ b/gcc/ici/ici.c @@ -318,6 +318,9 @@ invoke_named_callbacks (const char *name, ...) va_list va; int retval; int event = get_named_event_id (name, NO_INSERT); + + if (event < 0) + return PLUGEVT_NO_SUCH_EVENT; va_start (va, name); retval = invoke_plugin_callbacks (event, &va); va_end (va); |