From 167de3e438efe57c39a9b1c76ea6afb4987b62f8 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 1 Apr 2013 12:30:34 +0200 Subject: [PATCH] remove some temporaries in maildir_list_part() --- src/drv_maildir.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/drv_maildir.c b/src/drv_maildir.c index 78b6c19..39489c4 100644 --- a/src/drv_maildir.c +++ b/src/drv_maildir.c @@ -250,18 +250,19 @@ maildir_list_recurse( store_t *gctx, int isBox, int *flags, const char *inbox, static int maildir_list_part( store_t *gctx, int doInbox, int *flags ) { - int pl, nl; - const char *inbox = ((maildir_store_conf_t *)gctx->conf)->inbox; char path[_POSIX_PATH_MAX], name[_POSIX_PATH_MAX]; if (doInbox) { *flags &= ~LIST_INBOX; - pl = nfsnprintf( path, _POSIX_PATH_MAX, "%s", inbox ); - nl = nfsnprintf( name, _POSIX_PATH_MAX, "INBOX" ); - return maildir_list_recurse( gctx, 1, flags, 0, path, pl, name, nl ); + return maildir_list_recurse( + gctx, 1, flags, 0, + path, nfsnprintf( path, _POSIX_PATH_MAX, "%s", ((maildir_store_conf_t *)gctx->conf)->inbox ), + name, nfsnprintf( name, _POSIX_PATH_MAX, "INBOX" ) ); } else { - pl = nfsnprintf( path, _POSIX_PATH_MAX, "%s", gctx->conf->path ); - return maildir_list_recurse( gctx, 0, flags, inbox, path, pl, name, 0 ); + return maildir_list_recurse( + gctx, 0, flags, ((maildir_store_conf_t *)gctx->conf)->inbox, + path, nfsnprintf( path, _POSIX_PATH_MAX, "%s", gctx->conf->path ), + name, 0 ); } }