GDataInputStream: don't segfault on async line reads
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 13 Feb 2012 15:41:20 +0000 (16:41 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 14 Feb 2012 18:04:07 +0000 (19:04 +0100)
commit5b8a6900d3c0e757044b7f5c6e9eb54f9cb18154
treeef069c7d8f14b7a6f7ae4d40d4b6ba8920e80bf1
parent96671ce815e061a7ff472adbe89ac381443c619a
GDataInputStream: don't segfault on async line reads

If an async line read fails, it returns NULL. In that case, we
must return NULL before validating the line, or we segfault.

https://bugzilla.gnome.org/show_bug.cgi?id=658484
gio/gdatainputstream.c