Bug 242363

Summary: fontforge-20061220-5 : 'pt' is used uninitialized in this function
Product: [openSUSE] openSUSE 10.3 Reporter: David Binderman <dcb314>
Component: OtherAssignee: Mike Fabian <mfabian>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
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: ---
Attachments: bugzilla-242363-uninitialized-variable.patch

Description David Binderman 2007-02-05 21:46:15 UTC
I just tried to compile package fontforge-20061220-5
with the GNU C compiler version 4.3 snapshot 20070202.

The compiler said

ustring.c:676: warning: 'pt' is used uninitialized in this function

The source code is

char *utf8_2_latin1_copy(const char *utf8buf) {

Suggest initialise local variable pt in the routine 
before first use.
Comment 1 Mike Fabian 2007-02-06 11:43:09 UTC

*** This bug has been marked as a duplicate of bug 240922 ***
Comment 2 Mike Fabian 2007-02-06 16:31:04 UTC
Created attachment 117662 [details]
bugzilla-242363-uninitialized-variable.patch

The patch I used.
Comment 3 Mike Fabian 2007-02-06 16:33:17 UTC
Fixed package submitted to STABLE and to the openSUSE build service.
Comment 4 Mike Fabian 2007-02-06 16:43:45 UTC
Reported upstream.