summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-06-05 17:45:27 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-06-05 17:45:27 +0300
commit286e52e948eee9e5f908c5944467149df35d25e7 (patch)
tree21e1ea353254a0049fed15002b766dd0dd1d74f7
parent680463a8d991389f4ea5942e87764137c55c0eb4 (diff)
downloadmariadb-git-286e52e948eee9e5f908c5944467149df35d25e7.tar.gz
After-merge fix: GCC -Wmaybe-uninitialized
-rw-r--r--storage/innobase/page/page0page.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/page/page0page.cc b/storage/innobase/page/page0page.cc
index c9a51ed7bce..ba2e08df2d2 100644
--- a/storage/innobase/page/page0page.cc
+++ b/storage/innobase/page/page0page.cc
@@ -2,7 +2,7 @@
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
-Copyright (c) 2017, 2019, MariaDB Corporation.
+Copyright (c) 2017, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@@ -2409,7 +2409,7 @@ bool page_validate(const page_t* page, const dict_index_t* index)
const rec_t* rec;
const rec_t* old_rec = NULL;
const rec_t* first_rec = NULL;
- ulint offs;
+ ulint offs = 0;
ulint n_slots;
ibool ret = TRUE;
ulint i;