[maemo-developers] [Make.am issue]Sofia throuwing Error message

From: Neil Jerram neiljerram at googlemail.com
Date: Mon Sep 8 12:05:15 EEST 2008
2008/9/8 Dave Neary <dneary at maemo.org>:
> This happens when you do something like this:
>
> #include <stdio.h>
> #include <stdlib.h>
>
> struct test *t;
>
> int main(void)
> {
>  t = malloc(sizeof *t);
>  printf("%d\n", t->i);
>
>  return 0;
> }

> In the above example, adding
> struct test {
>  int i, j;
> };
>
> before the declaration of t fixes the problem (but creates a different
> runtime problem - a virtual cookie for the person to see the issue).

t->i being undefined?

     Neil

More information about the maemo-developers mailing list