Re: big orbit problem.
- From: bob cs csoft net
- To: NotZed <zucchi zedzone mmc com au>
- cc: Havoc Pennington <hp redhat com>, gnome-devel-list gnome org
- Subject: Re: big orbit problem.
- Date: Thu, 11 Nov 1999 16:19:30 -0600 (CST)
On Fri, 12 Nov 1999, NotZed wrote:
>
> Hi,
>
> > blade_env *blade=(blade_env*)malloc(sizeof(blade_env));
> > blade->ev=(CORBA_Environment*)malloc(sizeof(CORBA_Environment));
>
> These casts are redundant if you include the right headers.
> (it'll make the code more readable without it).
k. I'll clean this up. :)
>
> > CORBA_exception_init(blade->ev);
> > blade->orb = CORBA_ORB_init(argc, argv, "orbit-local-orb", blade->ev);
>
> It should be &argc to this function at least, assuming argc is an int.
no. this is in a function that takes int *argc
the pointer argc is somehow being over written when CORBA_string_duping
>
> gcc -Wall would pick this up.
>
> Michael
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]