Canul Podkopayeva wrote:

> Why and how can I fix this code that segfault?

>      /* it sigfaults at this line */
>      ga->dog.answer = "a string!";

Not surprising, as ga isn't guaranteed to point to writable memory. 
You have to initialise it first.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to