[gnome-commander] Added missing g_return_if_fail (GNOME_CMD_IS_FILE_LIST (fl)) assert



commit 67d312542f0dfc626a2d51e16a97ddd716a36a6f
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Jun 21 19:36:16 2010 +0200

    Added missing g_return_if_fail (GNOME_CMD_IS_FILE_LIST (fl)) assert

 src/gnome-cmd-file-list.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 390bf7d..0ab86bf 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -1296,6 +1296,8 @@ static void on_dir_file_created (GnomeCmdDir *dir, GnomeCmdFile *f, GnomeCmdFile
 
 static void on_dir_file_deleted (GnomeCmdDir *dir, GnomeCmdFile *f, GnomeCmdFileList *fl)
 {
+    g_return_if_fail (GNOME_CMD_IS_FILE_LIST (fl));
+
     if (fl->cwd == dir)
         if (fl->remove_file(f))
             g_signal_emit (fl, signals[FILES_CHANGED], 0);



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