Hi

Dne Wed, 29 Jul 2009 13:27:08 +0200
"Marcin Szewczyk, Wodny" <[email protected]> napsal(a):

> Michal Čihař wrote:
> > Can you please add it as an attachment? I fail to reproduce your
> > problem with this [...]
> 
> Firstly, I attach my gammurc.
> 
> Secondly, I think gammurc is not the problem.
> 
> 
> Allocating GSM_StateMachine:
> gammu.c:1142: gsm = GSM_AllocStateMachine();

Which does calloc, what means that everything is initialised to 0.

> Getting a pointer to GSM_StateMachine->CurrentConfig:

No, CurrentConfig is returned only in case of -1 (which is not the
case here), otherwise pointer to one of existing configuration arrays
(allocated in GSM_AllocStateMachine).

But from cfg=0x34 it looks like GSM_AllocStateMachine failed and
returned NULL, which is indeed not checked (just commiting this to
upstream). Do you have set some memory limit, so that malloc could fail?

-- 
        Michal Čihař | http://cihar.com | http://blog.cihar.com

Attachment: signature.asc
Description: PGP signature

Reply via email to