[balsa/gtk3] Reduce scope of variable
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Reduce scope of variable
- Date: Sun, 22 Jul 2012 19:44:02 +0000 (UTC)
commit deee673d20431bfa653b73e54a1975c36b0597be
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jul 22 15:33:01 2012 -0400
Reduce scope of variable
* libinit_balsa/assistant_page_directory.c
(unconditional_mailbox): reduce scope of variable.
ChangeLog | 5 +++++
libinit_balsa/assistant_page_directory.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 51e3828..bd928b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-07-22 Peter Bloomfield
+ * libinit_balsa/assistant_page_directory.c
+ (unconditional_mailbox): reduce scope of variable.
+
+2012-07-22 Peter Bloomfield
+
* libbalsa/send.c (balsa_send_message_real): suppress memory
leak warning.
diff --git a/libinit_balsa/assistant_page_directory.c b/libinit_balsa/assistant_page_directory.c
index 6f9b060..bc9a218 100644
--- a/libinit_balsa/assistant_page_directory.c
+++ b/libinit_balsa/assistant_page_directory.c
@@ -79,7 +79,6 @@ unconditional_mailbox(const gchar * path, const gchar * prettyname,
{
gchar *dup;
gchar *index;
- char tmp[32] = "/tmp/balsa.XXXXXX";
ciss_url_t url;
gboolean ssl = FALSE, is_remote = FALSE;
@@ -145,6 +144,7 @@ unconditional_mailbox(const gchar * path, const gchar * prettyname,
if (*box == NULL) {
if (strcmp("/var/spool/mail/", path)) {
+ char tmp[32] = "/tmp/balsa.XXXXXX";
/* Don't fail if you can't create the spool mailbox. */
close(mkstemp(tmp));
*box = (LibBalsaMailbox*)libbalsa_mailbox_local_new(tmp, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]