[gnome-commander] Additional sanity check



commit f57fcf1099916e2d657d0d01cd0c9340631bbb82
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Sep 19 21:28:09 2021 +0200

    Additional sanity check

 src/gnome-cmd-file.cc | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 1f441978..715227c6 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -938,6 +938,7 @@ void gnome_cmd_file_edit (GnomeCmdFile *f)
 void GnomeCmdFile::update_gFileInfo(GFileInfo *gFileInfo_new)
 {
     g_return_if_fail (gFileInfo_new != nullptr);
+    g_return_if_fail (G_IS_FILE_INFO(gFileInfo_new));
 
     g_free (collate_key);
     g_object_unref (this->gFileInfo);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]