call g_unlink before write address.
authorPeng Huang <shawn.p.huang@gmail.com>
Tue, 11 Aug 2009 23:44:55 +0000 (07:44 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 11 Aug 2009 23:44:55 +0000 (07:44 +0800)
src/ibusshare.c

index 2fb7cf7d04fed452dc50d59620e50e177cf6eee4..eb2bec25bec5ea37072b3c81c7ba58e617646a7d 100644 (file)
@@ -238,6 +238,7 @@ ibus_write_address (const gchar *address)
     g_mkdir_with_parents (path, 0700);
     g_free (path);
 
+    g_unlink (ibus_get_socket_path ());
     pf = fopen (ibus_get_socket_path (), "w");
     g_return_if_fail (pf != NULL);