Bug 110756

Summary: possibly bad source code
Product: [Fedora] Fedora Reporter: d.binderman
Component: gladeAssignee: Matthias Clasen <mclasen>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-05-13 16:59:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description d.binderman 2003-11-24 14:48:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)

Description of problem:

I just tried to compile package glade-0_6_4-10 from Fedora.

The compiler said

gbwidget.c(415): warning #187: use of "=" where "==" may have been 
intended

The source code is

    g_return_val_if_fail ((new_widget = NULL), NULL);

Maybe this should be

    g_return_val_if_fail ((new_widget == NULL), NULL);


Version-Release number of selected component (if applicable):
glade-0_6_4-10 

How reproducible:
Always

Steps to Reproduce:
1. by inspection
2.
3.
    

Additional info:

Comment 1 Matthias Clasen 2004-05-13 16:59:55 UTC
The code looks a bit dubious, but is intended (and works) as written.