[gnome-commander/gvfs_mount: 2/9] get_path: check if gFileInfo is not null
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gvfs_mount: 2/9] get_path: check if gFileInfo is not null
- Date: Tue, 15 Jun 2021 21:51:03 +0000 (UTC)
commit f2f5d714acc6c31fd9dd6ed9441c08309e3c293c
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sun Jun 6 21:10:07 2021 +0200
get_path: check if gFileInfo is not null
src/gnome-cmd-file.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 506ec3010..9bddbef84 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -527,9 +527,8 @@ gchar *GnomeCmdFile::get_quoted_name()
gchar *GnomeCmdFile::get_path()
{
- //g_return_val_if_fail (gFile != nullptr, nullptr);
+ g_return_val_if_fail (gFileInfo != nullptr, nullptr);
- //auto filename = GetGfileAttributeString (G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME);
auto filename = g_file_info_get_name (this->gFileInfo);
if (strcmp (filename, G_DIR_SEPARATOR_S) == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]