| Bug #8691 | ha_archive: The variable "ptr" is used before its value is set. | ||
|---|---|---|---|
| Submitted: | 22 Feb 2005 16:05 | Modified: | 25 Feb 2005 23:48 |
| Reporter: | Sergey Petrunya | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.0-bk | OS: | |
| Assigned to: | Brian Aker | CPU Architecture: | Any |
[25 Feb 2005 23:48]
Paul DuBois
No documentation change needed. This problem did not appear in any release.

Description: The IRIX compiler produces this warning the compiling ha_archive.cc: cc-1551 CC: WARNING File = ha_archive.cc, Line = 604 The variable "ptr" is used before its value is set. uint32 size= ((Field_blob*) table->field[*ptr])->get_length(); ^ Looking at the code one sees: ... { char *ptr; uint32 size= ((Field_blob*) table->field[*ptr])->get_length(); ... } Which is clearly a bug. How to repeat: n/a