mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
branches/zip: row_raw_format(): Silence a GCC 4.4.2 warning
of possibly uninitialized variable format_in_hex.
This commit is contained in:
parent
9ea180a1c9
commit
25939e31ef
1 changed files with 10 additions and 5 deletions
|
@ -915,6 +915,10 @@ row_raw_format(
|
|||
|
||||
ret = row_raw_format_int(data, data_len, prtype,
|
||||
buf, buf_size, &format_in_hex);
|
||||
if (format_in_hex) {
|
||||
|
||||
goto format_in_hex;
|
||||
}
|
||||
break;
|
||||
case DATA_CHAR:
|
||||
case DATA_VARCHAR:
|
||||
|
@ -923,14 +927,15 @@ row_raw_format(
|
|||
|
||||
ret = row_raw_format_str(data, data_len, prtype,
|
||||
buf, buf_size, &format_in_hex);
|
||||
if (format_in_hex) {
|
||||
|
||||
goto format_in_hex;
|
||||
}
|
||||
|
||||
break;
|
||||
/* XXX support more data types */
|
||||
default:
|
||||
|
||||
format_in_hex = TRUE;
|
||||
}
|
||||
|
||||
if (format_in_hex) {
|
||||
format_in_hex:
|
||||
|
||||
if (UNIV_LIKELY(buf_size > 2)) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue