On Thu, Jun 19, 2008 at 1:09 AM, Enlightenment CVS
<[EMAIL PROTECTED]> wrote:
> Enlightenment CVS committal
>
> Author  : raster
> Project : e17
> Module  : libs/evas
>
> Dir     : e17/libs/evas/src/lib/canvas
>
>
> Modified Files:
>        evas_object_main.c
>
>
> Log Message:
>
>
> bad *alloc! bad sizeof usage. bad! :)
>
> ===================================================================
> RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_main.c,v
> retrieving revision 1.71
> retrieving revision 1.72
> diff -u -3 -r1.71 -r1.72
> --- evas_object_main.c  12 Jun 2008 13:22:26 -0000      1.71
> +++ evas_object_main.c  19 Jun 2008 04:09:33 -0000      1.72
> @@ -647,7 +647,7 @@
>    if (obj->delete_me)
>      return;
>    if (!obj->size_hints)
> -     obj->size_hints = calloc(1, sizeof(*obj->size_hints));
> +     obj->size_hints = calloc(1, sizeof(Evas_Size_Hints));
>

...


Well, this is exactly the same thing.

As I saw from IRC, the guy was getting a segfault, because comparison
was swapped (if and if-not), which I fixed after Andres tested it, so
the guy was using an older version.

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [EMAIL PROTECTED]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to