summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2008-03-04 21:14:00 +0000
committerBenjamin Otte <otte@src.gnome.org>2008-03-04 21:14:00 +0000
commitcc15804496bc13aa821fd6ec36db35c660dfcb2c (patch)
tree8dbc74a177e4a479dafe91aef1a35a3ae423ba15 /common
parentde7a1b4074638d3fcf6dceeff9a878d365c80507 (diff)
downloadgvfs-cc15804496bc13aa821fd6ec36db35c660dfcb2c.tar.gz
add g_return_if_fail here - I had SEGVs sometime later due to values being
2008-03-04 Benjamin Otte <otte@gnome.org> * common/gmountspec.c: (g_mount_spec_set_with_len): add g_return_if_fail here - I had SEGVs sometime later due to values being NULL here. So better catch em early svn path=/trunk/; revision=1545
Diffstat (limited to 'common')
-rw-r--r--common/gmountspec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/gmountspec.c b/common/gmountspec.c
index 744e0a90..d4986aff 100644
--- a/common/gmountspec.c
+++ b/common/gmountspec.c
@@ -139,6 +139,9 @@ g_mount_spec_set_with_len (GMountSpec *spec,
int i;
char *value_copy;
+ g_return_if_fail (key != NULL);
+ g_return_if_fail (value != NULL);
+
if (value_len == -1)
value_copy = g_strdup (value);
else