* libsoup/soup-auth.c (soup_auth_authenticate): g_return_if_fail
if either username or password is NULL. Noted on the mailing list.
* libsoup/soup-auth-basic.c (authenticate): remove redundant check
svn path=/trunk/; revision=1152
* libsoup.pc.in (Requires): Add gthread-2.0; the app must call
g_thread_init(), but libsoup won't pull it in itself if built with
- --as-needed, so make sure it gets pulled in from here.
+ --as-needed, so make sure it gets pulled in from here. Noted by
+ Zeeshan Ali.
+
+ * libsoup/soup-auth.c (soup_auth_authenticate): g_return_if_fail
+ if either username or password is NULL. Noted on the mailing list.
+
+ * libsoup/soup-auth-basic.c (authenticate): remove redundant check
2008-08-04 Dan Winship <danw@gnome.org>
char *user_pass;
int len;
- g_return_if_fail (username != NULL);
- g_return_if_fail (password != NULL);
-
user_pass = g_strdup_printf ("%s:%s", username, password);
len = strlen (user_pass);
gboolean was_authenticated;
g_return_if_fail (SOUP_IS_AUTH (auth));
- g_return_if_fail (username != NULL || password == NULL);
+ g_return_if_fail (username != NULL);
+ g_return_if_fail (password != NULL);
was_authenticated = soup_auth_is_authenticated (auth);
SOUP_AUTH_GET_CLASS (auth)->authenticate (auth, username, password);