aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/nntp/camel-nntp-newsrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/nntp/camel-nntp-newsrc.c')
-rw-r--r--camel/providers/nntp/camel-nntp-newsrc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/camel/providers/nntp/camel-nntp-newsrc.c b/camel/providers/nntp/camel-nntp-newsrc.c
index fc0f4c2a1a..81594d3dcd 100644
--- a/camel/providers/nntp/camel-nntp-newsrc.c
+++ b/camel/providers/nntp/camel-nntp-newsrc.c
@@ -229,6 +229,8 @@ camel_nntp_newsrc_get_subscribed_group_names (CamelNNTPNewsrc *newsrc)
{
struct newsrc_ptr_array npa;
+ g_return_val_if_fail (newsrc, NULL);
+
npa.ptr_array = g_ptr_array_new();
npa.subscribed_only = TRUE;
@@ -243,6 +245,8 @@ camel_nntp_newsrc_get_all_group_names (CamelNNTPNewsrc *newsrc)
{
struct newsrc_ptr_array npa;
+ g_return_val_if_fail (newsrc, NULL);
+
npa.ptr_array = g_ptr_array_new();
npa.subscribed_only = FALSE;
@@ -338,6 +342,8 @@ camel_nntp_newsrc_write_to_file(CamelNNTPNewsrc *newsrc, FILE *fp)
{
struct newsrc_fp newsrc_fp;
+ g_return_if_fail (newsrc);
+
newsrc_fp.newsrc = newsrc;
newsrc_fp.fp = fp;
@@ -351,6 +357,8 @@ camel_nntp_newsrc_write(CamelNNTPNewsrc *newsrc)
{
FILE *fp;
+ g_return_if_fail (newsrc);
+
if (!newsrc->dirty)
return;