summaryrefslogtreecommitdiff
path: root/storage/connect/plugutil.c
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2016-06-02 23:36:19 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2016-06-02 23:36:19 +0200
commita9ac3506d21135373f9ced92c79c0d9d7c7dca13 (patch)
treea9b6adf758e54f82bff7a46148e978ecca8834ce /storage/connect/plugutil.c
parente905abf91b91cd30c63798b9b60e737a822291e0 (diff)
downloadmariadb-git-a9ac3506d21135373f9ced92c79c0d9d7c7dca13.tar.gz
git90.msg + git91.msg
Diffstat (limited to 'storage/connect/plugutil.c')
-rw-r--r--storage/connect/plugutil.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/connect/plugutil.c b/storage/connect/plugutil.c
index 38e28a171b2..2551b603349 100644
--- a/storage/connect/plugutil.c
+++ b/storage/connect/plugutil.c
@@ -516,7 +516,9 @@ void *PlugSubAlloc(PGLOBAL g, void *memp, size_t size)
if (trace)
htrc("PlugSubAlloc: %s\n", g->Message);
- longjmp(g->jumper[g->jump_level], 1);
+ /* Nothing we can do if longjmp is not initialized. */
+ assert(g->jump_level >= 0);
+ longjmp(g->jumper[g->jump_level], 1);
} /* endif size OS32 code */
/*********************************************************************/