Mercurial > pidgin
comparison src/account.c @ 8549:1a016d979ce0
[gaim-migrate @ 9291]
if we can't write a file, we certainly shouldn't toast the file we have
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 01 Apr 2004 21:24:17 +0000 |
parents | ef881489396e |
children | 7dcd6f26e4a7 |
comparison
equal
deleted
inserted
replaced
8548:fae482a76700 | 8549:1a016d979ce0 |
---|---|
1393 chmod(filename, S_IRUSR | S_IWUSR); | 1393 chmod(filename, S_IRUSR | S_IWUSR); |
1394 } | 1394 } |
1395 else { | 1395 else { |
1396 gaim_debug(GAIM_DEBUG_ERROR, "accounts", "Unable to write %s\n", | 1396 gaim_debug(GAIM_DEBUG_ERROR, "accounts", "Unable to write %s\n", |
1397 filename); | 1397 filename); |
1398 g_free(filename); | |
1399 return; | |
1398 } | 1400 } |
1399 | 1401 |
1400 filename_real = g_build_filename(user_dir, "accounts.xml", NULL); | 1402 filename_real = g_build_filename(user_dir, "accounts.xml", NULL); |
1401 | 1403 |
1402 if (rename(filename, filename_real) < 0) { | 1404 if (rename(filename, filename_real) < 0) { |