LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bugzilla-152315-locale-variable-used-before-set.patch of Package wordcut (Project DISCONTINUED:openSUSE:11.2)

diff -ru wordcut-0.5.1b2.orig/wordcut/wordcut_dict_dump.c wordcut-0.5.1b2/wordcut/wordcut_dict_dump.c
--- wordcut-0.5.1b2.orig/wordcut/wordcut_dict_dump.c	2003-09-11 08:23:08.000000000 +0200
+++ wordcut-0.5.1b2/wordcut/wordcut_dict_dump.c	2006-02-23 18:25:52.000000000 +0100
@@ -4,7 +4,7 @@
 static char dump_buffer[1000];
 
 static void dump_(uint8_t *data,int p,int c) {
-    uint8_t header=data[p],size;
+    uint8_t header=data[p],size=data[p+1];
     int i;
 
 
@@ -19,8 +19,6 @@
         }
         printf ("\n");
     }
-    size=data[p+1];
-
                                 
     if (size > 0) {
         if (header & 0x2) {
wordcut-0.5.1b2/wordcutだけに発見: wordcut_dict_dump.c.~1~