aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-14 08:04:51 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-14 08:04:51 +0000
commita6b586be3027c12b38c2bbda956770bba0f61bc4 (patch)
treef37a3f86b1de5ed1e030731f159605431372f0ad /imap.c
parentbe9c9f0a5b6d598fb9eeb8e4d2d2cfef367dd759 (diff)
downloadfetchmail-a6b586be3027c12b38c2bbda956770bba0f61bc4.tar.gz
fetchmail-a6b586be3027c12b38c2bbda956770bba0f61bc4.tar.bz2
fetchmail-a6b586be3027c12b38c2bbda956770bba0f61bc4.zip
Dynamic allocation for the query structure string entries.
svn path=/trunk/; revision=757
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index e65807ec..404f75c0 100644
--- a/imap.c
+++ b/imap.c
@@ -100,7 +100,7 @@ static int imap_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp)
recent = unseen = 0;
ok = gen_transact(sockfp,
"SELECT %s",
- ctl->mailbox[0] ? ctl->mailbox : "INBOX");
+ ctl->mailbox ? ctl->mailbox : "INBOX");
if (ok != 0)
return(ok);