[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:43:47 +0000 (UTC)
commit f27aaf849bdfe6c8d4589185a89bfc4fcaa439c9
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jul 22 15:27:41 2012 -0400
Reduce scope of variable
* libbalsa/mailbox_pop3.c (mp_load_uids): reduce scope of
variable.
ChangeLog | 5 +++++
libbalsa/mailbox_pop3.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 65749cb..0ff1626 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-07-22 Peter Bloomfield
+ * libbalsa/mailbox_pop3.c (mp_load_uids): reduce scope of
+ variable.
+
+2012-07-22 Peter Bloomfield
+
* libbalsa/mailbox_mh.c (lbm_mh_parse_mailbox),
(lbm_mh_handle_seq_line), (lbm_mh_check): use sscanf field
limits.
diff --git a/libbalsa/mailbox_pop3.c b/libbalsa/mailbox_pop3.c
index 69f66b8..8f84b0d 100644
--- a/libbalsa/mailbox_pop3.c
+++ b/libbalsa/mailbox_pop3.c
@@ -201,7 +201,6 @@ move_from_msgdrop(const gchar *tmp_path, LibBalsaMailbox *dest,
static GHashTable*
mp_load_uids(void)
{
- char line[1024]; /* arbitrary limit of uid len */
GHashTable *res = g_hash_table_new_full(g_str_hash, g_str_equal,
g_free, NULL);
gchar *fname = g_strconcat(g_get_home_dir(), "/.balsa/pop-uids", NULL);
@@ -209,6 +208,7 @@ mp_load_uids(void)
g_free(fname);
if(f) {
struct flock lck;
+ char line[1024]; /* arbitrary limit of uid len */
memset (&lck, 0, sizeof(struct flock));
lck.l_type = F_RDLCK; lck.l_whence = SEEK_SET;
fcntl(fileno(f), F_SETLK, &lck);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]