[gimp] app: properly initialize variables
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: properly initialize variables
- Date: Sat, 22 Jun 2013 23:46:32 +0000 (UTC)
commit df21310b0f5bf05e9087559480e321d0dfcdea11
Author: Clayton Walker <clayton m walker gmail com>
Date: Sun Jun 23 01:41:50 2013 +0200
app: properly initialize variables
app/tools/gimptransformtool.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimptransformtool.c b/app/tools/gimptransformtool.c
index 6d793c1..15d69d4 100644
--- a/app/tools/gimptransformtool.c
+++ b/app/tools/gimptransformtool.c
@@ -1349,15 +1349,15 @@ gimp_transform_tool_transform (GimpTransformTool *tr_tool,
GimpImage *image = gimp_display_get_image (display);
GimpItem *active_item = NULL;
GeglBuffer *orig_buffer = NULL;
- gint orig_offset_x;
- gint orig_offset_y;
+ gint orig_offset_x = 0;
+ gint orig_offset_y = 0;
GeglBuffer *new_buffer;
gint new_offset_x;
gint new_offset_y;
const gchar *null_message = NULL;
const gchar *locked_message = NULL;
gchar *undo_desc = NULL;
- gboolean new_layer;
+ gboolean new_layer = FALSE;
switch (options->type)
{
@@ -1439,8 +1439,6 @@ gimp_transform_tool_transform (GimpTransformTool *tr_tool,
case GIMP_TRANSFORM_TYPE_SELECTION:
orig_buffer = g_object_ref (gimp_drawable_get_buffer (GIMP_DRAWABLE (active_item)));
- orig_offset_x = 0;
- orig_offset_y = 0;
break;
case GIMP_TRANSFORM_TYPE_PATH:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]