projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e9dfcc
)
gisi: fix use of unitialised variable
author
Andrzej Zaborowski
<andrew.zaborowski@intel.com>
Thu, 23 Dec 2010 04:39:39 +0000
(
05:39
+0100)
committer
Denis Kenzior
<denkenz@gmail.com>
Fri, 24 Dec 2010 00:23:50 +0000
(18:23 -0600)
Set no msg.version if it's not available.
gisi/modem.c
patch
|
blob
|
history
diff --git
a/gisi/modem.c
b/gisi/modem.c
index
ff06cf2
..
9fb4d34
100644
(file)
--- 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.error = 0;
msg.data = buf;
msg.len = len;
- msg.version = &mux->version;
if (modem->trace != NULL)
modem->trace(&msg, NULL);
if (modem->trace != NULL)
modem->trace(&msg, NULL);
@@
-311,6
+310,8
@@
static gboolean isi_callback(GIOChannel *channel, GIOCondition cond,
return TRUE;
}
return TRUE;
}
+ msg.version = &mux->version;
+
if (g_isi_msg_id(&msg) == COMMON_MESSAGE)
common_message_decode(mux, &msg);
if (g_isi_msg_id(&msg) == COMMON_MESSAGE)
common_message_decode(mux, &msg);