[gnome-commander] GnomeCmdFile: assert on uri being local in gnome_cmd_file_new_from_uri(GnomeVFSURI *uri)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdFile: assert on uri being local in gnome_cmd_file_new_from_uri(GnomeVFSURI *uri)
- Date: Sat, 9 Apr 2011 23:10:18 +0000 (UTC)
commit 99efc533b307a3934245ee1b2239624cfed1fa2e
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Apr 10 01:03:08 2011 +0200
GnomeCmdFile: assert on uri being local in gnome_cmd_file_new_from_uri(GnomeVFSURI *uri)
src/gnome-cmd-file.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 0253d70..6b3053f 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -148,6 +148,7 @@ GnomeCmdFile *gnome_cmd_file_new (GnomeVFSFileInfo *info, GnomeCmdDir *dir)
GnomeCmdFile *gnome_cmd_file_new_from_uri (GnomeVFSURI *uri)
{
g_return_val_if_fail (uri != NULL, NULL);
+ g_return_val_if_fail (gnome_vfs_uri_is_local (uri), NULL);
const GnomeVFSFileInfoOptions infoOpts = (GnomeVFSFileInfoOptions) (GNOME_VFS_FILE_INFO_FOLLOW_LINKS|GNOME_VFS_FILE_INFO_GET_MIME_TYPE);
GnomeVFSFileInfo *info = gnome_vfs_file_info_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]