summaryrefslogtreecommitdiff
path: root/graphics/ruby-gnomecanvas2/files/patch-rbgnome-canvas-path-def.c
blob: 8c8b8159655a0388568083b278a0fa7d1ee9334d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- src/rbgnome-canvas-path-def.c.orig	Sun Oct 16 20:51:48 2005
+++ src/rbgnome-canvas-path-def.c	Sun Oct 16 20:53:08 2005
@@ -72,7 +72,8 @@
     if (NIL_P(obj)) {
         path = gnome_canvas_path_def_new();
     } else if (TYPE(obj) == T_FIXNUM) {
-        gint length = NUM2INT(obj);
+        gint length;
+        length = NUM2INT(obj);
         if (length > 0) {
             path = gnome_canvas_path_def_new_sized(length);
         } else {