|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] [PATCH] uninitialised variable in xcs 
| The first use of the variable after its declaration is a comparison
and possibly an assignment of its own value to itself.  I suspect it
would be a good idea to initialise it.
        n = fd_max ( n, listen_fd );
Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>
--- xen-unstable/tools/xcs/xcs.c.n      2005-03-01 14:03:24.637202605 -0500
+++ xen-unstable/tools/xcs/xcs.c        2005-03-01 14:03:39.724737759 -0500
@@ -677,7 +677,7 @@
  
     for (;;)
     {
-        int n, ret;
+        int n = 0, ret;
         fd_set rd, wr, er;
         FD_ZERO ( &rd );
         FD_ZERO ( &wr );
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-devel] [PATCH] uninitialised variable in xcs,
Rik van Riel <=
 |  |  | 
  
    |  |  |