[gnome-commander] get_path: check if gFileInfo is not null
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] get_path: check if gFileInfo is not null
- Date: Sun, 20 Jun 2021 21:58:00 +0000 (UTC)
commit 63a72c4ef022159b5c88be274788e2c38516ed91
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]