We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84da154 commit 6a28882Copy full SHA for 6a28882
sql/sql_digest.h
@@ -41,6 +41,9 @@ struct sql_digest_storage
41
For Example:
42
SELECT * FROM T1;
43
<SELECT_TOKEN> <*> <FROM_TOKEN> <ID_TOKEN> <2> <T1>
44
+
45
+ @note Only the first @c m_byte_count bytes are initialized,
46
+ out of @c m_token_array_length.
47
*/
48
unsigned char *m_token_array;
49
/* Length of the token array to be considered for DIGEST_TEXT calculation. */
@@ -63,10 +66,6 @@ struct sql_digest_storage
63
66
m_full= false;
64
67
m_byte_count= 0;
65
68
m_charset_number= 0;
- if (m_token_array_length > 0)
- {
- memset(m_token_array, 0, m_token_array_length);
69
- }
70
memset(m_md5, 0, MD5_HASH_SIZE);
71
}
72
0 commit comments