Bug 242363 - fontforge-20061220-5 : 'pt' is used uninitialized in this function
Summary: fontforge-20061220-5 : 'pt' is used uninitialized in this function
Status: RESOLVED DUPLICATE of bug 240922
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Other (show other bugs)
Version: unspecified
Hardware: All SUSE Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Mike Fabian
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 21:46 UTC by David Binderman
Modified: 2007-02-06 16:43 UTC (History)
0 users

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


Attachments
bugzilla-242363-uninitialized-variable.patch (429 bytes, patch)
2007-02-06 16:31 UTC, Mike Fabian
Details | Diff

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