(bug 1200349, GNOME bug 746003)i9cf
parent
d21d1ad65d
commit
fadcdc690c
@ -0,0 +1,27 @@
|
|||||||
|
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
|
||||||
|
|
Loading…
Reference in new issue