Do not use uninitialized variable
authorMilan Crha <mcrha@redhat.com>
Fri, 9 Jul 2010 07:32:33 +0000 (09:32 +0200)
committerMilan Crha <mcrha@redhat.com>
Fri, 9 Jul 2010 07:32:33 +0000 (09:32 +0200)
calendar/libedata-cal/e-cal-backend-cache.c

index 646c8b2..2e418ef 100644 (file)
@@ -69,6 +69,8 @@ get_filename_from_uri (const gchar *uri, ECalSourceType source_type)
                        break;
        }
 
+       user_cache_dir = e_get_user_cache_dir ();
+
        /* Mangle the URI to not contain invalid characters. */
        mangled_uri = g_strdelimit (g_strdup (uri), ":/", '_');