changeset 14513:59223d5fb0ad

[gaim-migrate @ 17233] Use OS specific path separator and free the GString when done with it. committer: Tailor Script <tailor@pidgin.im>
author Geoff Foster <g-off_>
date Mon, 11 Sep 2006 00:52:18 +0000
parents 92817f33cefc
children bb99380c67c3
files gtk/plugins/cap/cap.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/plugins/cap/cap.c	Mon Sep 11 00:31:48 2006 +0000
+++ b/gtk/plugins/cap/cap.c	Mon Sep 11 00:52:18 2006 +0000
@@ -568,10 +568,14 @@
 	if(_db)
 		return TRUE;
 
-	//make database connection here
+	//build the path
 	path = g_string_new(gaim_user_dir());
-	g_string_append(path, "/cap.db");
+	g_string_append(path, G_DIR_SEPARATOR_S);
+	g_string_append(path, "cap.db");
+
+	//make database connection here
 	rc = sqlite3_open(path->str, &_db);
+	g_string_free(path, TRUE);
 	if(rc != SQLITE_OK)
 		return FALSE;