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
This commit is contained in:
Rodrigo Moya
2001-10-03 16:51:50 +00:00
committed by Rodrigo Moya
parent d536ccea94
commit 818f16f74f
2 changed files with 6 additions and 0 deletions

View File

@ -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;