[gnome-commander] get_quoted_name: check if gFileInfo instead of info is not null
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] get_quoted_name: check if gFileInfo instead of info is not null
- Date: Fri, 4 Jun 2021 22:23:38 +0000 (UTC)
commit 4ccc4cf5cd9485f88d013689848ace0445b4f54d
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Jun 5 00:22:35 2021 +0200
get_quoted_name: check if gFileInfo instead of info is not null
src/gnome-cmd-file.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 22bfad130..334389f9a 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -519,7 +519,7 @@ GnomeVFSResult GnomeCmdFile::rename(const gchar *new_name)
gchar *GnomeCmdFile::get_quoted_name()
{
- g_return_val_if_fail (info != nullptr, nullptr);
+ g_return_val_if_fail (gFileInfo != nullptr, nullptr);
return quote_if_needed (g_file_info_get_display_name(gFileInfo));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]