gimp r25912 - in trunk: . plug-ins/help
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r25912 - in trunk: . plug-ins/help
- Date: Tue, 10 Jun 2008 14:48:11 +0000 (UTC)
Author: neo
Date: Tue Jun 10 14:48:10 2008
New Revision: 25912
URL: http://svn.gnome.org/viewvc/gimp?rev=25912&view=rev
Log:
2008-06-10 Sven Neumann <sven gimp org>
* plug-ins/help/gimphelplocale.c: added some sanity checks.
Modified:
trunk/ChangeLog
trunk/plug-ins/help/gimphelplocale.c
Modified: trunk/plug-ins/help/gimphelplocale.c
==============================================================================
--- trunk/plug-ins/help/gimphelplocale.c (original)
+++ trunk/plug-ins/help/gimphelplocale.c Tue Jun 10 14:48:10 2008
@@ -64,6 +64,8 @@
void
gimp_help_locale_free (GimpHelpLocale *locale)
{
+ g_return_if_fail (locale != NULL);
+
if (locale->help_id_mapping)
g_hash_table_destroy (locale->help_id_mapping);
@@ -79,6 +81,9 @@
gimp_help_locale_map (GimpHelpLocale *locale,
const gchar *help_id)
{
+ g_return_val_if_fail (locale != NULL, NULL);
+ g_return_val_if_fail (help_id != NULL, NULL);
+
if (locale->help_id_mapping)
{
GimpHelpItem *item = g_hash_table_lookup (locale->help_id_mapping,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]