[gegl] gegl: Handle NULL in gegl_node_new_processor() debug output
- From: Martin Nordholts <martinn src gnome org>
- To: svn-commits-list gnome org
- Subject: [gegl] gegl: Handle NULL in gegl_node_new_processor() debug output
- Date: Sun, 21 Jun 2009 16:18:42 -0400 (EDT)
commit 5a1f7de27f8cd2c8e315e1e975534a19d9c86a12
Author: Martin Nordholts <martinn src gnome org>
Date: Sun Jun 21 21:28:48 2009 +0200
gegl: Handle NULL in gegl_node_new_processor() debug output
gegl/process/gegl-processor.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gegl/process/gegl-processor.c b/gegl/process/gegl-processor.c
index 2092aff..0c69493 100644
--- a/gegl/process/gegl-processor.c
+++ b/gegl/process/gegl-processor.c
@@ -327,9 +327,10 @@ gegl_node_new_processor (GeglNode *node,
"rectangle", rectangle,
NULL);
- GEGL_NOTE (GEGL_DEBUG_PROCESS, "gegl_node_new_processor() node = %s rectangle = %d, %d %dÃ?%d\n",
- gegl_node_get_debug_name (node),
- rectangle->x, rectangle->y, rectangle->width, rectangle->height);
+ if (rectangle)
+ GEGL_NOTE (GEGL_DEBUG_PROCESS, "gegl_node_new_processor() node = %s rectangle = %d, %d %dÃ?%d\n",
+ gegl_node_get_debug_name (node),
+ rectangle->x, rectangle->y, rectangle->width, rectangle->height);
/* FIXME: Look for what pads that are available rather than looking
* at what type of operation we are dealing with
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]