Skip to content
Snippets Groups Projects
Commit 5fe7bb33 authored by rswindell's avatar rswindell
Browse files

Missed the init of fd.dir.

parent c3a7d672
No related branches found
No related tags found
No related merge requests found
...@@ -323,6 +323,7 @@ void sbbs_t::download_msg_attachments(smb_t* smb, smbmsg_t* msg, bool del) ...@@ -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) sp=strrchr(tp,'\\');
if(sp) tp=sp+1; if(sp) tp=sp+1;
file_t fd; file_t fd;
fd.dir=cfg.total_dirs+1; /* temp dir for file attachments */
padfname(tp,fd.name); padfname(tp,fd.name);
SAFEPRINTF3(fpath,"%sfile/%04u.in/%s" /* path is path/fname */ SAFEPRINTF3(fpath,"%sfile/%04u.in/%s" /* path is path/fname */
,cfg.data_dir, msg->idx.to, tp); ,cfg.data_dir, msg->idx.to, tp);
......
...@@ -67,7 +67,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode) ...@@ -67,7 +67,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode)
long l,last_mode; long l,last_mode;
ulong last; ulong last;
bool replied; bool replied;
file_t fd;
mail_t *mail; mail_t *mail;
smbmsg_t msg; smbmsg_t msg;
char search_str[128] = ""; char search_str[128] = "";
...@@ -89,8 +88,6 @@ void sbbs_t::readmail(uint usernumber, int which, long lm_mode) ...@@ -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 */ 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) { if((i=smb_stack(&smb,SMB_STACK_PUSH))!=0) {
errormsg(WHERE,ERR_OPEN,"MAIL",i); errormsg(WHERE,ERR_OPEN,"MAIL",i);
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment