Bug 153544 - digikam-0.8.1-9: local variable used before set
Summary: digikam-0.8.1-9: local variable used before set
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All SuSE Linux 10.1
: P5 - None : Normal
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-25 09:33 UTC by David Binderman
Modified: 2006-02-28 10:49 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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