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..
--- 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) {
__
distcc mailing list http://distcc.samba.org/
To unsubscribe or change options:
http://lists.samba.org/cgi-bin/mailman/listinfo/distcc