Commit 5fe7bb33 authored by rswindell's avatar rswindell
Browse files

Missed the init of fd.dir.

parent c3a7d672
......@@ -323,6 +323,7 @@ void sbbs_t::download_msg_attachments(smb_t* smb, smbmsg_t* msg, bool del)
if(!sp) sp=strrchr(tp,'\\');
if(sp) tp=sp+1;
file_t fd;
fd.dir=cfg.total_dirs+1; /* temp dir for file attachments */
padfname(tp,fd.name);
SAFEPRINTF3(fpath,"%sfile/%04u.in/%s" /* path is path/fname */
,cfg.data_dir, msg->idx.to, tp);
......
......@@ -67,7 +67,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
long l,last_mode;
ulong last;
bool replied;
file_t fd;
mail_t *mail;
smbmsg_t msg;
char search_str[128] = "";
......@@ -89,8 +88,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
msg.total_hfields=0; /* init to NULL, cause not allocated yet */
fd.dir=cfg.total_dirs+1; /* temp dir for file attachments */
if((i=smb_stack(&smb,SMB_STACK_PUSH))!=0) {
errormsg(WHERE,ERR_OPEN,"MAIL",i);
return;
......
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