From fb9da166ae8fa029e4e37b53bfa40e777dc83b82 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 25 Jun 2007 08:09:23 +0000 Subject: [PATCH] Fixed a segfault when MIME type is unknown --- src/properties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/properties.c b/src/properties.c index 1e07411..119a919 100644 --- a/src/properties.c +++ b/src/properties.c @@ -140,7 +140,7 @@ static int _properties_do(Mime * mime, GtkIconTheme * theme, else if(mime != NULL) { type = mime_type(mime, filename); - if(theme != NULL) + if(theme != NULL && type != NULL) { mime_icons(mime, theme, type, 48, &pixbuf, -1); if(pixbuf != NULL)