output = stdout;
quiet_flag = TRUE;
} else {
- fname_out = concat_path_file(dir_prefix, fname_out);
+ if (dir_prefix != NULL)
+ fname_out = concat_path_file(dir_prefix, fname_out);
output = xfopen(fname_out, (do_continue ? "a" : "w"));
}
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.42 2001/06/21 19:45:06 andersen Exp $
+ * $Id: wget.c,v 1.43 2001/07/19 17:29:38 kraai Exp $
*/
output = stdout;
quiet_flag = TRUE;
} else {
- fname_out = concat_path_file(dir_prefix, fname_out);
+ if (dir_prefix != NULL)
+ fname_out = concat_path_file(dir_prefix, fname_out);
output = xfopen(fname_out, (do_continue ? "a" : "w"));
}
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.42 2001/06/21 19:45:06 andersen Exp $
+ * $Id: wget.c,v 1.43 2001/07/19 17:29:38 kraai Exp $
*/