Explicitly document the fact that you have to call soup_uri_set_path()
authorDan Winship <danw@src.gnome.org>
Tue, 9 Dec 2008 19:53:49 +0000 (19:53 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 9 Dec 2008 19:53:49 +0000 (19:53 +0000)
commit811527eeeec4147bee99baf3d3633c1e07c73868
tree775fed4d1f989ffb629865a04d2993d404cef54f
parentc03509c52fbb665a655c2cd5f0f971e12e8ee456
Explicitly document the fact that you have to call soup_uri_set_path()

* libsoup/soup-uri.c (soup_uri_new): Explicitly document the fact
that you have to call soup_uri_set_path() when using
soup_uri_new(NULL), since path is required to be non-%NULL.

* libsoup/soup-connection.c (connect_message): initialize
uri->path

* libsoup/soup-cookie.c (soup_cookie_applies_to_uri):
g_return_val_if_fail() rather than crashing if uri->path is %NULL.
Also, fix the cookie/uri path comparison to not potentially read
off the end of uri->path. #562191, Mark Lee.

svn path=/trunk/; revision=1221
ChangeLog
libsoup/soup-connection.c
libsoup/soup-cookie.c
libsoup/soup-uri.c