Bug 162143 - 'offset' is used uninitialized in this function
'offset' is used uninitialized in this function
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: gtkhtml3 (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Malcolm
:
Depends On:
Blocks: FC5Target
  Show dependency treegraph
 
Reported: 2005-06-30 06:08 EDT by David Binderman
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-12-12 23:15:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description David Binderman 2005-06-30 06:08:15 EDT
Description of problem:

I just tried to compile package gtkhtml3-3.6.2-1 from Redhat
Fedora Core development tree with the gcc 4.0.0 compiler and
the compiler flag -Wall.

The compiler said

gtkhtml.c:3285: warning: 'offset' is used uninitialized in this function

The source code is

        D_IM (printf ("IM gtk_html_im_retrieve_surrounding_cb\n");)
        gtk_im_context_set_surrounding (context, get_surrounding_text
(html->engine, &offset), -1, offset);

I agree with the compiler. This code would benefit from rework, because
there is no defined ordering on the evaluation of function parameters.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Dave Malcolm 2005-08-17 23:30:41 EDT
Thanks for this report.  I'll try to get this fixed upstream.
Comment 2 Dave Malcolm 2005-08-18 17:04:30 EDT
I've sent a patch upstream for this
Comment 3 Dave Malcolm 2005-12-12 23:15:24 EST
(this is now fixed in upstream CVS, and in the current rawhide gtkhtml3 tarball)

Note You need to log in before you can comment on or make changes to this bug.