Skip to content

Commit 1df5d30

Browse files
author
Tor Didriksen
committed
Fix compile warning
sql/filesort_utils.h: In member function virtual void filesort_buffer_unittest::FileSortBufferTest::TearDown(): sql/filesort_utils.h:251:24: warning: <anonymous>.Filesort_buffer::m_sort_length is used uninitialized in this function [-Wuninitialized] Change-Id: If334119a3a336a601187f58bfa2a2ad9d0bef21c
1 parent c58c6f8 commit 1df5d30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/filesort_utils.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -84,6 +84,7 @@ class Filesort_buffer
8484
m_next_rec_ptr(NULL), m_rawmem(NULL), m_record_pointers(NULL),
8585
m_sort_keys(NULL),
8686
m_num_records(0), m_record_length(0),
87+
m_sort_length(0),
8788
m_size_in_bytes(0), m_idx(0)
8889
{}
8990

0 commit comments

Comments
 (0)