Commit 3d7cc571 authored by Wayne Davison's avatar Wayne Davison

If cleanup_set() gets passed a NULL fnametmp or fname, set

cleanup_fname to NULL.
parent 86fc7e68
......@@ -166,7 +166,7 @@ void cleanup_disable(void)
void cleanup_set(char *fnametmp, char *fname, struct file_struct *file,
int fd_r, int fd_w)
{
cleanup_fname = fnametmp;
cleanup_fname = fname ? fnametmp : NULL;
cleanup_new_fname = fname;
cleanup_file = file;
cleanup_fd_r = fd_r;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment