[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Don't crash with no batter unit
From: |
Bastien Nocera |
Subject: |
Don't crash with no batter unit |
Date: |
Sat, 07 Jul 2007 02:11:38 +0100 |
Heya,
My test code crashed because I forgot to provide a battery unit member
to the struct.
BT:
#0 ReplyGetBattery (messagetype=<value optimized out>, buffer=0x61aef0
"\002AT+CBC", length=27, data=0x61b300, state=<value optimized out>) at
atgen.c:1433
#1 0x00002aaaaaadb743 in sm_incoming_function (messagetype=9 '\t',
message=0x61aef0, messagesize=<value optimized out>, state=0x6243f8) at
gsm-statemachine.c:127
#2 0x00002aaaaab186f6 in atbus_loop (timeout=<value optimized out>,
sm=0x6243f8) at atbus.c:241
#3 0x00002aaaaaadb870 in gn_sm_loop (timeout=1, state=0x2c) at
gsm-statemachine.c:82
#4 0x00002aaaaaadbb05 in __sm_block_timeout (waitfor=<value optimized out>,
t=0, data=0x61b300, state=0x6243f8) at gsm-statemachine.c:272
#5 0x00002aaaaab11f61 in Functions (op=<value optimized out>, data=0x61b300,
state=0x6243f8) at atgen.c:273
Patch attached.
--
Bastien Nocera <address@hidden>
gnokii-no-battery-unit.patch
Description: Text Data
- Don't crash with no batter unit,
Bastien Nocera <=