[distcc] Another small patch

Wayne Davison wayned at users.sourceforge.net
Mon Jul 14 15:57:52 GMT 2003


Gcc was complainging about the use of an uninitialized variable in
bulk.c, and it looks to be correct about this for a change.  The
appended patch makes sure that "ret" gets set in dcc_r_file() when
len is 0.

..wayne..
-------------- next part --------------
--- src/bulk.c	14 Jul 2003 11:45:11 -0000	1.47
+++ src/bulk.c	14 Jul 2003 15:51:51 -0000
@@ -263,9 +263,7 @@
         return EXIT_IO_ERROR;
     }
 
-    if (len > 0) {
-        ret = dcc_pump_in(ofd, ifd, len, compr);
-    }
+    ret = len > 0? dcc_pump_in(ofd, ifd, len, compr) : 0;
     close_ret = dcc_close(ofd);
 
     if (!ret && !close_ret) {


More information about the distcc mailing list