[libsoup] soup-session-feature: work around an old Eclipse bug
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-session-feature: work around an old Eclipse bug
- Date: Mon, 5 Jan 2015 14:01:00 +0000 (UTC)
commit 28b4e579bbaa1e573a831de98ad9c8ae1c9e3238
Author: Dan Winship <danw gnome org>
Date: Mon Jan 5 08:58:22 2015 -0500
soup-session-feature: work around an old Eclipse bug
Add g_return_if_fail() checks to soup_session_feature_attach() and
soup_session_feature_detach(), to work around a bug in Eclipse that
was fixed a long time ago
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776) but which
people keep reporting against libsoup.
https://bugzilla.gnome.org/show_bug.cgi?id=710242
libsoup/soup-session-feature.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-session-feature.c b/libsoup/soup-session-feature.c
index 560bb8f..272367a 100644
--- a/libsoup/soup-session-feature.c
+++ b/libsoup/soup-session-feature.c
@@ -119,6 +119,9 @@ void
soup_session_feature_attach (SoupSessionFeature *feature,
SoupSession *session)
{
+ g_return_if_fail (SOUP_IS_SESSION_FEATURE (feature));
+ g_return_if_fail (SOUP_IS_SESSION (session));
+
SOUP_SESSION_FEATURE_GET_CLASS (feature)->attach (feature, session);
}
@@ -138,6 +141,9 @@ void
soup_session_feature_detach (SoupSessionFeature *feature,
SoupSession *session)
{
+ g_return_if_fail (SOUP_IS_SESSION_FEATURE (feature));
+ g_return_if_fail (SOUP_IS_SESSION (session));
+
SOUP_SESSION_FEATURE_GET_CLASS (feature)->detach (feature, session);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]