From: Gustavo B. <bar...@pr...> - 2011-08-29 11:45:18
|
Zero parameters before checking otherwise it will not touch them and on failure caller will get garbage --Gustavo Sent from my iPhone On 29/08/2011, at 08:40, Enlightenment SVN <no-...@en...> wrote: > Log: > dont need ti check priv - macro did it anyway > > > > Author: raster > Date: 2011-08-29 04:39:43 -0700 (Mon, 29 Aug 2011) > New Revision: 62941 > Trac: http://trac.enlightenment.org/e/changeset/62941 > > Modified: > trunk/evas/src/lib/canvas/evas_object_grid.c > > Modified: trunk/evas/src/lib/canvas/evas_object_grid.c > =================================================================== > --- trunk/evas/src/lib/canvas/evas_object_grid.c 2011-08-29 11:28:43 UTC (rev 62940) > +++ trunk/evas/src/lib/canvas/evas_object_grid.c 2011-08-29 11:39:43 UTC (rev 62941) > @@ -267,16 +267,8 @@ > evas_object_grid_size_get(const Evas_Object *o, int *w, int *h) > { > EVAS_OBJECT_GRID_DATA_GET_OR_RETURN(o, priv); > - if (priv) > - { > - if (w) *w = priv->size.w; > - if (h) *h = priv->size.h; > - } > - else > - { > - if (w) *w = 0; > - if (h) *h = 0; > - } > + if (w) *w = priv->size.w; > + if (h) *h = priv->size.h; > } > > EAPI Eina_Bool > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > enlightenment-svn mailing list > enl...@li... > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn |