<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>121093</bug_id>
          
          <creation_ts>2013-09-10 06:13:24 -0700</creation_ts>
          <short_desc>[GTK] The code generator produces a warning if a parameter can be NULL</short_desc>
          <delta_ts>2013-09-10 06:31:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alberto Garcia">berto</reporter>
          <assigned_to name="Alberto Garcia">berto</assigned_to>
          <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>927272</commentid>
    <comment_count>0</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-10 06:13:24 -0700</bug_when>
    <thetext>Here&apos;s the warning:

  GEN      DerivedSources/webkitdom/WebKitDOMDOMWindow.h
Use of uninitialized value $CodeGeneratorGObject::cBody[129] in print at ../../Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm line 1536.

The problem is in the generator of the g_return_if_fail() checks at the beginning of each method.

If a particular parameter can be null the generator returns an undefined value instead of an empty string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>927274</commentid>
    <comment_count>1</comment_count>
      <attachid>211194</attachid>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-10 06:15:13 -0700</bug_when>
    <thetext>Created attachment 211194
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>927277</commentid>
    <comment_count>2</comment_count>
      <attachid>211194</attachid>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2013-09-10 06:25:11 -0700</bug_when>
    <thetext>Comment on attachment 211194
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>927280</commentid>
    <comment_count>3</comment_count>
    <who name="Alberto Garcia">berto</who>
    <bug_when>2013-09-10 06:31:45 -0700</bug_when>
    <thetext>Committed r155435: &lt;http://trac.webkit.org/changeset/155435&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>211194</attachid>
            <date>2013-09-10 06:15:13 -0700</date>
            <delta_ts>2013-09-10 06:25:11 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>121093.diff</filename>
            <type>text/plain</type>
            <size>1235</size>
            <attacher name="Alberto Garcia">berto</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCBmZTQ3Yjg5Li5hMTc1ZDllIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTYg
QEAKKzIwMTMtMDktMTAgIEFsYmVydG8gR2FyY2lhICA8YmVydG9AaWdhbGlhLmNvbT4KKworICAg
ICAgICBbR1RLXSBUaGUgY29kZSBnZW5lcmF0b3IgcHJvZHVjZXMgYSB3YXJuaW5nIGlmIGEgcGFy
YW1ldGVyIGNhbiBiZSBOVUxMCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3J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kgewotICAg
ICAgICAgICAgcmV0dXJuOworICAgICAgICAgICAgcmV0dXJuICIiOwogICAgICAgICB9CiAgICAg
ICAgICRjb25kaXRpb24gPSAiJHBhcmFtTmFtZSI7CiAgICAgfQo=
</data>
<flag name="review"
          id="233254"
          type_id="1"
          status="+"
          setter="cdumez"
    />
          </attachment>
      

    </bug>

</bugzilla>