After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 615003 - _edomain and _ecode possibly used uninitialized warnings in dbusclientmodule
_edomain and _ecode possibly used uninitialized warnings in dbusclientmodule
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: D-Bus
0.8.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-06 19:57 UTC by Heiko Stübner
Modified: 2010-10-13 20:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Heiko Stübner 2010-04-06 19:57:44 UTC
file: valadbusclientmodule.vala
method: check_error_reply

The vars _edomain and _ecode are created without an initial value. The following code does not in all cases set a default value. Both vars are then passed to g_set_error resulting in a compiler warning about usage of an uninitialized variable.

In libfso-glib of the freesmartphone.org-project this results in 946 warnings about this.
Comment 1 Jürg Billeter 2010-10-13 20:44:38 UTC
commit 00b8e2e75b6d3df948aae6139c710e9e6f7c7c8d
Author: Jürg Billeter <j@bitron.ch>
Date:   Wed Oct 13 22:41:08 2010 +0200

    D-Bus: Fix use of uninitialized variables in dbus-glib error handling
    
    Fixes bug 615003.