Bug 141152

Summary: pilot-link-0.12.0_pre4-6: 2 * local variable set before used
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: Petr Ostadal <postadal>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2005-12-31 12:02:41 UTC
I just tried to compile package pilot-link-0.12.0_pre4-6 with the Intel
C compiler

It said

dlp.c(2279): warning #592: variable "res" is used before its value is set

The source code is

                        LOG((PI_DBG_DLP, PI_DBG_LVL_INFO,
                            "DLP ReadFeature FtrGet error 0x%8.8lX\n",
                            res));

Suggest initialise local variable "res" before first use.

I also tried out the GNU C compiler. It said

read-screenshot.c:105: warning: "f" is used uninitialized in this function

Suggest initialise local variable "f" before first use.


I also had a look at the project website [ http://bugs.pilot-link.org ].
Their current version is 1.8, so I guess they are not interested in bug
reports for 0.12.0.

Is it time to upgrade pilot-link to a newer version ?
Comment 1 Petr Ostadal 2006-01-09 12:27:37 UTC
Hi David, where did you find the version 1.8 of pilot link?? The current version is 0.12.0_pre4.
Comment 2 Petr Ostadal 2006-01-09 14:09:58 UTC
fixed uninitialized variable
Comment 3 David Binderman 2006-11-06 10:02:53 UTC
(In reply to comment #2)
> fixed uninitialized variable

Strange. I just checked Suse Linux 10.2 Beta 1
and both parts of this bug report still appear to
exist.



Comment 4 Petr Ostadal 2006-11-07 16:04:30 UTC
fixed and submited to stable