[gegl/soc-2013-opecl-ops] operation: Add a precondition check to gegl_operation_class_set_key ()
- From: Carlos Zubieta <czubieta src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2013-opecl-ops] operation: Add a precondition check to gegl_operation_class_set_key ()
- Date: Wed, 31 Jul 2013 16:49:14 +0000 (UTC)
commit 8a6f350da588406ce2a516dfd93c8dc2dc387417
Author: Michael Henning <drawoc darkrefraction com>
Date: Tue Jul 30 16:54:17 2013 -0400
operation: Add a precondition check to gegl_operation_class_set_key ()
gegl/operation/gegl-operation.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gegl/operation/gegl-operation.c b/gegl/operation/gegl-operation.c
index d67ae9a..590eddd 100644
--- a/gegl/operation/gegl-operation.c
+++ b/gegl/operation/gegl-operation.c
@@ -647,6 +647,8 @@ gegl_operation_class_set_key (GeglOperationClass *klass,
{
gchar *key_value_dup;
+ g_return_if_fail (key_name != NULL);
+
if (!key_value)
{
g_hash_table_remove (klass->keys, key_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]