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 635950 - Region spans_intersect_foreach() empty input
Region spans_intersect_foreach() empty input
Status: RESOLVED FIXED
Product: gnome-perl
Classification: Bindings
Component: Gtk2
unspecified
Other Linux
: Normal minor
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2010-11-27 21:19 UTC by Kevin Ryde
Modified: 2010-12-12 13:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch and test case (3.50 KB, patch)
2010-11-27 21:19 UTC, Kevin Ryde
committed Details | Review

Description Kevin Ryde 2010-11-27 21:19:35 UTC
Created attachment 175382 [details] [review]
patch and test case

This is the bit I mentioned before and prematurely exercised allowing an empty input array to gdk_region_spans_intersect_foreach().  That func accepts n_spans==0, which I take to mean that empty input can reasonably be allowed in the bindings.  But the bindings have to avoid passing spans==NULL which a g_new0 would give.
Comment 1 Torsten Schoenfeld 2010-12-12 13:37:49 UTC
Thanks.