diff options
Diffstat (limited to 'libcaja-private/caja-icon-info.c')
-rw-r--r-- | libcaja-private/caja-icon-info.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcaja-private/caja-icon-info.c b/libcaja-private/caja-icon-info.c index b3f33735..4ad58e45 100644 --- a/libcaja-private/caja-icon-info.c +++ b/libcaja-private/caja-icon-info.c @@ -148,7 +148,7 @@ caja_icon_info_new_for_icon_info (GtkIconInfo *icon_info, GdkPoint *points; gint n_points; const char *filename; - char *basename, *p; + char *basename; icon = g_object_new (CAJA_TYPE_ICON_INFO, NULL); @@ -168,6 +168,8 @@ caja_icon_info_new_for_icon_info (GtkIconInfo *icon_info, filename = gtk_icon_info_get_filename (icon_info); if (filename != NULL) { + char *p; + basename = g_path_get_basename (filename); p = strrchr (basename, '.'); if (p) |