|
Bugzilla – Full Text Bug Listing |
| Summary: | black-box-1.4.7-3: local variable used before set | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE LINUX 10.0 | Reporter: | David Binderman <dcb314> |
| Component: | Basesystem | Assignee: | Ladislav Michnovic <lmichnovic> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | SuSE Linux 10.1 | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
I'll take a closer look on the soruce code. Thak you for reporting this bug. Fixed, patch submited. |
I just tried to compile package black-box-1.4.7-3 with the Intel C compiler. It said blackbox.c(663): warning #592: variable "crystal_num" is used before its value is set The source code is int x,y,crystal_num; for (x=0;x<=10;x++){ for (y=0;y<=8;y++){ think[x][y]=0; light[x][y]=0; } } while ((crystal_num>difficulty*3)||(crystal_num<(difficulty-1)*3)) Suggest initialise local variable "crystal_num" before first use.