Don't doublicate the "." in cached filenames
This commit is contained in:
parent
4a3501a279
commit
86af851d4c
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ katze_net_get_cached_path (KatzeNet* net,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extension = g_strrstr (uri, ".");
|
extension = g_strrstr (uri, ".");
|
||||||
cached_filename = g_strdup_printf ("%s%s%s", checksum,
|
cached_filename = g_strdup_printf ("%s%s", checksum,
|
||||||
extension ? "." : "", extension ? extension : "");
|
extension ? extension : "");
|
||||||
g_free (checksum);
|
g_free (checksum);
|
||||||
cached_path = g_build_filename (cache_path, cached_filename, NULL);
|
cached_path = g_build_filename (cache_path, cached_filename, NULL);
|
||||||
g_free (cached_filename);
|
g_free (cached_filename);
|
||||||
|
|
Loading…
Reference in a new issue