aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2001-10-04 00:51:50 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2001-10-04 00:51:50 +0800
commit818f16f74fa2bbdec05a0b76798c506f90d524ce (patch)
treefb1954e27bb28ab899bd60906b60e34504e7b7ce
parentd536ccea945dfff58d6f09fff835d765e2e9c1bf (diff)
downloadgsoc2013-evolution-818f16f74fa2bbdec05a0b76798c506f90d524ce.tar
gsoc2013-evolution-818f16f74fa2bbdec05a0b76798c506f90d524ce.tar.gz
gsoc2013-evolution-818f16f74fa2bbdec05a0b76798c506f90d524ce.tar.bz2
gsoc2013-evolution-818f16f74fa2bbdec05a0b76798c506f90d524ce.tar.lz
gsoc2013-evolution-818f16f74fa2bbdec05a0b76798c506f90d524ce.tar.xz
gsoc2013-evolution-818f16f74fa2bbdec05a0b76798c506f90d524ce.tar.zst
gsoc2013-evolution-818f16f74fa2bbdec05a0b76798c506f90d524ce.zip
default protocol to file: if not specified
2001-10-03 Rodrigo Moya <rodrigo@ximian.com> * e-url.c (e_url_new): default protocol to file: if not specified svn path=/trunk/; revision=13377
-rw-r--r--e-util/ChangeLog4
-rw-r--r--e-util/e-url.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index e11691a740..24160565dd 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-03 Rodrigo Moya <rodrigo@ximian.com>
+
+ * e-url.c (e_url_new): default protocol to file: if not specified
+
2001-10-02 Rodrigo Moya <rodrigo@ximian.com>
* e-url.c (e_uri_copy): duplicate also the params member
diff --git a/e-util/e-url.c b/e-util/e-url.c
index 496cd87981..34f28ab2f7 100644
--- a/e-util/e-url.c
+++ b/e-util/e-url.c
@@ -138,6 +138,8 @@ e_uri_new (const char *uri_string)
g_strdown (uri->protocol);
uri_string = p + 1;
}
+ else
+ uri->protocol = g_strdup ("file");
if (!*uri_string)
return uri;