Bug 153544

Summary: digikam-0.8.1-9: local variable used before set
Product: [openSUSE] SUSE LINUX 10.0 Reporter: David Binderman <dcb314>
Component: BasesystemAssignee: E-mail List <kde-maintainers>
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: ---

Description David Binderman 2006-02-25 09:33:37 UTC
I just tried to compile package digikam-0.8.1-9 with a prerelease version
4.2 of the GNU C compiler.

It said

imageprint.cpp:240: warning: "h" is used uninitialized in this function

The source code is

        h -= filenameOffset;

Suggest initialise local variable "h" before its first use.
Comment 1 Stephan Kulow 2006-02-28 07:08:14 UTC
looking at the source code, I guess this creates more bugs than this warning. 
Comment 2 Stephan Kulow 2006-02-28 10:49:12 UTC
I hope I fixed it for beta7