[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:07 +0000 (UTC)
commit 385d68d1cf13a101c78b9e7c9b597d336a3a2ad2
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jul 22 15:34:09 2012 -0400
Reduce scope of variable
* src/balsa-index.c (pipe_out_watch): reduce scope of variable.
ChangeLog | 4 ++++
src/balsa-index.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index bd928b0..d945b17 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2012-07-22 Peter Bloomfield
+ * src/balsa-index.c (pipe_out_watch): reduce scope of variable.
+
+2012-07-22 Peter Bloomfield
+
* libinit_balsa/assistant_page_directory.c
(unconditional_mailbox): reduce scope of variable.
diff --git a/src/balsa-index.c b/src/balsa-index.c
index e75714e..0a8ca25 100644
--- a/src/balsa-index.c
+++ b/src/balsa-index.c
@@ -2510,13 +2510,14 @@ static gboolean
pipe_out_watch(GIOChannel *channel, GIOCondition condition, gpointer data)
{
struct PipeData *pipe = (struct PipeData*)data;
- char buf[2048];
gsize bytes_read;
GIOStatus status;
GError *error = NULL;
gchar *s;
if ( (condition & G_IO_IN) == G_IO_IN) {
+ char buf[2048];
+
status =
g_io_channel_read_chars(channel, buf, sizeof(buf), &bytes_read,
&error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]