poldek: poldek/pkgdir/metadata/load.c, poldek/pkgdir/pkg_store.c, ...

mis mis at pld-linux.org
Mon Aug 21 17:40:59 CEST 2006


Author: mis                          Date: Mon Aug 21 15:40:59 2006 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- 'variable may be used uninitialized in this function'

---- Files affected:
poldek/poldek/pkgdir/metadata:
   load.c (1.4 -> 1.5) 
poldek/poldek/pkgdir:
   pkg_store.c (1.22 -> 1.23) 
poldek/poldek:
   poldek_term.c (1.8 -> 1.9) , lib_init.c (1.75 -> 1.76) , capreq.c (1.42 -> 1.43) 

---- Diffs:

================================================================
Index: poldek/poldek/pkgdir/metadata/load.c
diff -u poldek/poldek/pkgdir/metadata/load.c:1.4 poldek/poldek/pkgdir/metadata/load.c:1.5
--- poldek/poldek/pkgdir/metadata/load.c:1.4	Tue Nov  1 20:01:33 2005
+++ poldek/poldek/pkgdir/metadata/load.c	Mon Aug 21 17:40:54 2006
@@ -197,7 +197,8 @@
                                 xmlNode *node)
 {
     struct pkg pkg, *rpkg = NULL;
-    char *arch;
+    char *arch = NULL;
+    
     struct uinfo {
         char *summary;
         char *description;

================================================================
Index: poldek/poldek/pkgdir/pkg_store.c
diff -u poldek/poldek/pkgdir/pkg_store.c:1.22 poldek/poldek/pkgdir/pkg_store.c:1.23
--- poldek/poldek/pkgdir/pkg_store.c:1.22	Thu Oct 20 17:45:25 2005
+++ poldek/poldek/pkgdir/pkg_store.c	Mon Aug 21 17:40:54 2006
@@ -258,7 +258,7 @@
 
 int pkg_restore_fields(tn_stream *st, struct pkg *pkg) 
 {
-    uint8_t n = 0, nsize, tag;
+    uint8_t n = 0, nsize, tag = 0;
     uint32_t tmp;
     
     n_stream_read_uint8(st, &nsize);

================================================================
Index: poldek/poldek/poldek_term.c
diff -u poldek/poldek/poldek_term.c:1.8 poldek/poldek/poldek_term.c:1.9
--- poldek/poldek/poldek_term.c:1.8	Mon Oct 11 21:30:18 2004
+++ poldek/poldek/poldek_term.c	Mon Aug 21 17:40:54 2006
@@ -86,7 +86,7 @@
 
 int poldek_term_vprintf_c(int color, const char *fmt, va_list args)
 {
-    int n, isbold = 0;
+    int n = 0, isbold = 0;
 
     if (color & PRAT_BOLD) {
         n += printf("%s", at_bold);

================================================================
Index: poldek/poldek/lib_init.c
diff -u poldek/poldek/lib_init.c:1.75 poldek/poldek/lib_init.c:1.76
--- poldek/poldek/lib_init.c:1.75	Sun Aug 20 20:14:58 2006
+++ poldek/poldek/lib_init.c	Mon Aug 21 17:40:54 2006
@@ -783,7 +783,8 @@
                  ts->getop(ts, ent->op));
             
         } else {
-            int v;
+            int v = -1;
+            
             if (ent->optype == CONF_TYPE_BOOLEAN)
                 v = poldek_conf_get_bool(htcnf, ent->name, ent->defaultv);
             

================================================================
Index: poldek/poldek/capreq.c
diff -u poldek/poldek/capreq.c:1.42 poldek/poldek/capreq.c:1.43
--- poldek/poldek/capreq.c:1.42	Sun Oct 23 22:00:17 2005
+++ poldek/poldek/capreq.c	Mon Aug 21 17:40:54 2006
@@ -483,7 +483,7 @@
 struct capreq *capreq_restore(tn_alloc *na, tn_buf_it *nbufi) 
 {
     struct capreq *cr;
-    uint8_t size, *cr_bufp;
+    uint8_t size = 0, *cr_bufp;
     uint8_t cr_buf[5];          /* placeholder,  for sizeof */
     
     
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/poldek/poldek/pkgdir/metadata/load.c?r1=1.4&r2=1.5&f=u
    http://cvs.pld-linux.org/poldek/poldek/pkgdir/pkg_store.c?r1=1.22&r2=1.23&f=u
    http://cvs.pld-linux.org/poldek/poldek/poldek_term.c?r1=1.8&r2=1.9&f=u
    http://cvs.pld-linux.org/poldek/poldek/lib_init.c?r1=1.75&r2=1.76&f=u
    http://cvs.pld-linux.org/poldek/poldek/capreq.c?r1=1.42&r2=1.43&f=u



More information about the pld-cvs-commit mailing list