[gnome-commander/gcmd-1-4] Removed unnecessary g_assert call, fixes #746003
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-4] Removed unnecessary g_assert call, fixes #746003
- Date: Sat, 14 Mar 2015 23:13:10 +0000 (UTC)
commit a7e7dc944a77bd49b93262ed1b0a1059329eb290
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>
Conflicts:
AUTHORS
AUTHORS | 1 +
src/owner.h | 2 --
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/AUTHORS b/AUTHORS
index 7bcd1d2..33806a7 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -8,6 +8,7 @@ Developers:
Thomas Jost <thomas jost gmail com>
Uwe Scholz <u scholz83 gmx de>
Jan Vleeshouwers <jamavlers 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 78e45da..732be63 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]