From: <g-...@us...> - 2006-09-11 00:52:25
|
Revision: 17233 http://svn.sourceforge.net/gaim/?rev=17233&view=rev Author: g-off_ Date: 2006-09-10 17:52:18 -0700 (Sun, 10 Sep 2006) Log Message: ----------- Use OS specific path separator and free the GString when done with it. Modified Paths: -------------- trunk/gtk/plugins/cap/cap.c Modified: trunk/gtk/plugins/cap/cap.c =================================================================== --- trunk/gtk/plugins/cap/cap.c 2006-09-11 00:31:48 UTC (rev 17232) +++ trunk/gtk/plugins/cap/cap.c 2006-09-11 00:52:18 UTC (rev 17233) @@ -568,10 +568,14 @@ if(_db) return TRUE; + //build the path + path = g_string_new(gaim_user_dir()); + g_string_append(path, G_DIR_SEPARATOR_S); + g_string_append(path, "cap.db"); + //make database connection here - path = g_string_new(gaim_user_dir()); - g_string_append(path, "/cap.db"); rc = sqlite3_open(path->str, &_db); + g_string_free(path, TRUE); if(rc != SQLITE_OK) return FALSE; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |