}
-/*
- * Returns gchar* to the path of the cache directory
+/**
+ * modest_tny_account_store_get_cache_dir:
+ * @self: self a TnyAccountStoreIface instance
+ *
+ * returns the pathname of the cache directory
+ *
+ * Returns: a newly allocated string with the value of the pathname
+ * to the cache directory or NULL if the environment variable $HOME is
+ * not set,
* pointer has to be freed by caller
*/
static const gchar*
gchar *cache_dir;
if (g_getenv("HOME") != NULL)
- cache_dir = g_strconcat(g_getenv("HOME"), "/.modest/cache/");
+ cache_dir = g_strconcat(g_getenv("HOME"), "/.modest/cache/", NULL);
else
cache_dir = NULL;