All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gisi: fix use of unitialised variable.
@ 2010-12-23  4:39 Andrzej Zaborowski
  2010-12-23  4:39 ` [PATCH] n900: remove unneeded g_isi_client_destroy call Andrzej Zaborowski
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andrzej Zaborowski @ 2010-12-23  4:39 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

Set no msg.version if it's not available.
---
 gisi/modem.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gisi/modem.c b/gisi/modem.c
index ff06cf2..9fb4d34 100644
--- a/gisi/modem.c
+++ b/gisi/modem.c
@@ -293,7 +293,6 @@ static gboolean isi_callback(GIOChannel *channel, GIOCondition cond,
 		msg.error = 0;
 		msg.data = buf;
 		msg.len = len;
-		msg.version = &mux->version;
 
 		if (modem->trace != NULL)
 			modem->trace(&msg, NULL);
@@ -311,6 +310,8 @@ static gboolean isi_callback(GIOChannel *channel, GIOCondition cond,
 			return TRUE;
 		}
 
+		msg.version = &mux->version;
+
 		if (g_isi_msg_id(&msg) == COMMON_MESSAGE)
 			common_message_decode(mux, &msg);
 
-- 
1.7.1.86.g0e460.dirty


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-24  0:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23  4:39 [PATCH] gisi: fix use of unitialised variable Andrzej Zaborowski
2010-12-23  4:39 ` [PATCH] n900: remove unneeded g_isi_client_destroy call Andrzej Zaborowski
2010-12-24  0:26   ` Denis Kenzior
2010-12-23  4:39 ` [PATCH 1/2] stk: Send the AlphaId's to agent Andrzej Zaborowski
2010-12-24  0:32   ` Denis Kenzior
2010-12-24  0:26 ` [PATCH] gisi: fix use of unitialised variable Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.