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 783350 - length parameter can be NULL g_data_input_stream_read_line
length parameter can be NULL g_data_input_stream_read_line
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-06-02 12:18 UTC by Michele Dionisio
Modified: 2017-06-05 15:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michele Dionisio 2017-06-02 12:18:13 UTC
in gio function like
   g_data_input_stream_read_line 
and 
   g_data_input_stream_read_finish

the length parameter can be NULL but it is not documented
Comment 1 Philip Withnall 2017-06-05 15:05:07 UTC
Fixed on git master.

commit f98d9982677117834625f72ac1e496774564e15d
Author: Philip Withnall <withnall@endlessm.com>
Date:   Mon Jun 5 16:04:18 2017 +0100

    gdatainputstream: Annotate (out) length arguments as (optional)
    
    All of them are.
    
    Signed-off-by: Philip Withnall <withnall@endlessm.com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=783350

 gio/gdatainputstream.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)