You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gnome-commander/gnome-commander-1.4.5-GNOME...

28 lines
681 B

From 2e648e4b7d0740a0583568c017d12a9d9a359799 Mon Sep 17 00:00:00 2001
From: Mamoru Tasaka <mtasaka@fedoraproject.org>
Date: Sun, 15 Mar 2015 00:09:05 +0100
Subject: Removed unnecessary g_assert call, fixes #746003
Removing the g_assert call leads to a return of NULL when no ID could be
found.
Signed-off-by: Uwe Scholz <uwescholz@src.gnome.org>
diff --git a/src/owner.h b/src/owner.h
index a5e8e5d..85305ca 100644
--- a/src/owner.h
+++ b/src/owner.h
@@ -162,8 +162,6 @@ inline const gchar *GnomeCmdOwner::HashTable<T,ID>::operator [] (ID id)
{
Entry *entry = lookup(id);
- g_assert (entry != NULL);
-
return entry ? entry->name : NULL;
}
--
cgit v0.10.2