On Wed, 31 Aug 2011, Enlightenment SVN wrote:

> Log:
> PROTO/enna-explorer : prevent possible crash when mime type is NULL
>
>
> Author:       captainigloo
> Date:         2011-08-31 14:43:35 -0700 (Wed, 31 Aug 2011)
> New Revision: 63048
> Trac:         http://trac.enlightenment.org/e/changeset/63048
>
> Modified:
>  trunk/PROTO/enna-explorer/src/bin/view_grid.c
>
> Modified: trunk/PROTO/enna-explorer/src/bin/view_grid.c
> ===================================================================
> --- trunk/PROTO/enna-explorer/src/bin/view_grid.c     2011-08-31 21:33:32 UTC 
> (rev 63047)
> +++ trunk/PROTO/enna-explorer/src/bin/view_grid.c     2011-08-31 21:43:35 UTC 
> (rev 63048)
> @@ -113,7 +113,7 @@
>              icon = efreet_mime_type_icon_get(mime, getenv("E_ICON_THEME"), 
> 96);
>              if (!icon)
>                icon = efreet_mime_type_icon_get("unknown", 
> getenv("E_ICON_THEME"), 96);
> -             if (strstr(mime, "image/"))
> +             if (mime && strstr(mime, "image/"))

why not using eina_str_has_prefix() ?

Vincent

>                elm_icon_thumb_set(ic, gi->file->mrl, NULL);
>              else
>                elm_icon_file_set(ic, icon, NULL);
>
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to