SoupURI: give "foo:" a non-NULL path member
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 10 Jan 2012 13:20:38 +0000 (13:20 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 3 Feb 2012 13:49:40 +0000 (13:49 +0000)
commit672d2560b015855ab0350655ecae73f8045c2dc7
tree48fcb449e4a74f639d4c8da7347c046577e99444
parent5c3b01a9da2390fdebbea5131cf80a96a9c8f67f
SoupURI: give "foo:" a non-NULL path member

SoupURI documents uri->path as being required, and got_headers in
SoupServer assumes that it's non-NULL, but in fact parsing a URI
consisting solely of a scheme ("foo:") would leave path = NULL.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=667637
Bug-NB: NB#294977
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Dan Winship <danw@gnome.org>
libsoup/soup-uri.c