diff options
author | Benjamin Otte <otte@gnome.org> | 2008-03-04 21:14:00 +0000 |
---|---|---|
committer | Benjamin Otte <otte@src.gnome.org> | 2008-03-04 21:14:00 +0000 |
commit | cc15804496bc13aa821fd6ec36db35c660dfcb2c (patch) | |
tree | 8dbc74a177e4a479dafe91aef1a35a3ae423ba15 /common | |
parent | de7a1b4074638d3fcf6dceeff9a878d365c80507 (diff) | |
download | gvfs-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.c | 3 |
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 |