diff options
author | Don Scorgie <dscorgie@src.gnome.org> | 2006-08-28 19:42:55 +0000 |
---|---|---|
committer | Don Scorgie <dscorgie@src.gnome.org> | 2006-08-28 19:42:55 +0000 |
commit | 19539643c322f43e59ec2d8e9015423b82ba13be (patch) | |
tree | 29a1122f54fe0a3336bbf3c01bc139ea91ef3d79 | |
parent | 5b732c57d67cf6617f874ceb9a174bbd6a01156b (diff) | |
download | yelp-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-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/yelp-io-channel.c | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -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; |