Don't doublicate the "." in cached filenames

This commit is contained in:
Enrico Tröger 2008-10-27 22:36:41 +01:00 committed by Christian Dywan
parent 4a3501a279
commit 86af851d4c

View file

@ -147,8 +147,8 @@ katze_net_get_cached_path (KatzeNet* net,
#endif
extension = g_strrstr (uri, ".");
cached_filename = g_strdup_printf ("%s%s%s", checksum,
extension ? "." : "", extension ? extension : "");
cached_filename = g_strdup_printf ("%s%s", checksum,
extension ? extension : "");
g_free (checksum);
cached_path = g_build_filename (cache_path, cached_filename, NULL);
g_free (cached_filename);