Re: AW: AW: AW: Complie Error



Le Wed, Jul 31, 2002, à 05:39:35PM +0200, Arun-Kumar Krishnan a écrit:

static portrait_get_state(Portrait *port)
int I,
PortraitEnd *end;
PortaritState *state=g_new0(PortaritState,1);

two errors here (one is with respect to the for loop that follows). No, three
errors. C ain't Visual Basic for Applications...

state->obj_state.free=portrait_state_free;
state->global=g_strdup(port->global);

for (i=0;i<8;i++)
{
end=&port->end[i]
state->end[i].IN= g_strdup(end->IN);
state->end[i].OUT= g_strdup(end->OUT);
}
return state;

and error is 'end' might be used uninitialized in this function

Lars said "show [him] a *diff*". Please read diff(1)'s manual page.
        
        -- Cyrille

-- 
Grumpf.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]