summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDon Scorgie <dscorgie@src.gnome.org>2006-08-28 19:42:55 +0000
committerDon Scorgie <dscorgie@src.gnome.org>2006-08-28 19:42:55 +0000
commit19539643c322f43e59ec2d8e9015423b82ba13be (patch)
tree29a1122f54fe0a3336bbf3c01bc139ea91ef3d79
parent5b732c57d67cf6617f874ceb9a174bbd6a01156b (diff)
downloadyelp-19539643c322f43e59ec2d8e9015423b82ba13be.tar.gz
Supress critical warning when it isn't actually critical
* src/yelp-io-channel.c: Supress critical warning when it isn't actually critical
-rw-r--r--ChangeLog4
-rw-r--r--src/yelp-io-channel.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 83c3ae29..998f51bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2006-08-28 Don Scorgie <dscorgie@cvs.gnome.org>
+ * src/yelp-io-channel.c:
+ Supress critical warning when it isn't actually
+ critical
+
* src/yelp-info-parser.c:
* src/yelp-io-channel.c:
Don't fall over when part of the info file
diff --git a/src/yelp-io-channel.c b/src/yelp-io-channel.c
index cd11296f..de7c6479 100644
--- a/src/yelp-io-channel.c
+++ b/src/yelp-io-channel.c
@@ -76,7 +76,8 @@ yelp_io_channel_new_file (gchar *file,
YelpIOChannel *channel;
GIOChannel *iochannel;
- g_return_val_if_fail (file != NULL, NULL);
+ if (!file)
+ return NULL;
channel = g_new0(YelpIOChannel, 1);
iochannel = (GIOChannel *) channel;