[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newbie question
From: |
BORBELY Zoltan |
Subject: |
Re: Newbie question |
Date: |
Thu, 16 May 2002 14:52:18 +0200 |
User-agent: |
Mutt/1.2.5.1i |
Hi,
On Thu, May 16, 2002 at 02:13:49PM +0200, Christian Rishoej wrote:
> I am using libgnokii in an application of mine.
>
> When I call
>
> error = SM_Functions(GOP_ReadPhonebook, &data, state);
>
> ...i get a segfault. GDB blames the call
>
> dest[i] = DecodeWithUnicodeAlphabet(wc);
Haven't you forgot to initialize ``data'' correctly? The following code
snippet should work:
//GSM_Statemachine state;
//GSM_Data data;
//GSM_PhonebookEntry entry;
//GSM_Error error;
GSM_DataClear(&data);
entry.MemoryType = GMT_ME;
entry.Location = 0;
data.PhonebookEntry = &entry;
error = SM_Functions(GOP_ReadPhonebook, &data, &state);
Bye,
Bozo
- Newbie question, Christian Rishoej, 2002/05/16
- Re: Newbie question,
BORBELY Zoltan <=