[gnome-commander] Removed unnecessary g_assert call, fixes #746003
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Removed unnecessary g_assert call, fixes #746003
- Date: Sat, 14 Mar 2015 23:13:41 +0000 (UTC)
commit 2e648e4b7d0740a0583568c017d12a9d9a359799
Author: Mamoru Tasaka <mtasaka fedoraproject org>
Date: Sun Mar 15 00:09:05 2015 +0100
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>
AUTHORS | 1 +
src/owner.h | 2 --
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/AUTHORS b/AUTHORS
index 68c5ebc..b359a06 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -9,6 +9,7 @@ Developers:
Uwe Scholz <u scholz83 gmx de>
Jan Vleeshouwers <jamavlers gmail com>
Markus Rathgeb <maggu2810 gmail com>
+ Mamoru Tasaka <mtasaka fedoraproject org>
Project Maintainer:
Uwe Scholz <u scholz83 gmx de>
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]