[gnome-commander/gcmd-1-2-8] 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/gcmd-1-2-8] GnomeCmdFile: assert on uri being local in gnome_cmd_file_new_from_uri(GnomeVFSURI *uri)
- Date: Sat, 9 Apr 2011 23:10:08 +0000 (UTC)
commit 52947c394af896f127e098e1ed7aa686a47018f0
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 fb3bcdf..cfb3daf 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -177,6 +177,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]