[gnome-commander] Reduce complaining if fail
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Reduce complaining if fail
- Date: Tue, 28 Sep 2021 19:01:31 +0000 (UTC)
commit 3d60d93e3eba757654e9558a7ae85b8ed994b7b4
Author: Uwe Scholz <u scholz83 gmx de>
Date: Tue Sep 28 20:57:52 2021 +0200
Reduce complaining if fail
src/gnome-cmd-dir.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 874cc074..49ba7a1c 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -378,7 +378,10 @@ GnomeCmdDir *gnome_cmd_dir_get_child (GnomeCmdDir *dir, const gchar *child)
GnomeCmdCon *gnome_cmd_dir_get_connection (GnomeCmdDir *dir)
{
- g_return_val_if_fail (GNOME_CMD_IS_DIR (dir), nullptr);
+ if (!GNOME_CMD_IS_DIR (dir))
+ {
+ return nullptr;
+ }
return dir->priv->con;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]