Mercurial > pidgin.yaz
changeset 7473:859e4cf4d472
[gaim-migrate @ 8086]
This should take care of those C99 thinks wing mentioned
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 11 Nov 2003 05:41:44 +0000 |
parents | 24201ff324f8 |
children | 2bdacd38528c |
files | src/log.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/log.c Tue Nov 11 03:10:15 2003 +0000 +++ b/src/log.c Tue Nov 11 05:41:44 2003 +0000 @@ -499,6 +499,7 @@ * that you open a convo with someone, but don't say anything. */ char *ud = gaim_user_dir(); + char *filename; char *guy = g_strdup(gaim_normalize(log->account, gaim_account_get_username(log->account))); const char *prpl = GAIM_PLUGIN_PROTOCOL_INFO (gaim_find_prpl(gaim_account_get_protocol(log->account)))->list_icon(log->account, NULL); @@ -523,7 +524,7 @@ mkdir (dir, S_IRUSR | S_IWUSR | S_IXUSR); g_free(guy); - char *filename = g_build_filename(dir, date, NULL); + filename = g_build_filename(dir, date, NULL); g_free(dir); file = fopen(dir, "r"); @@ -614,11 +615,11 @@ char *path = g_build_filename(gaim_user_dir(), "logs", logfile, NULL); char *newlog; - g_free(logfile); - GaimLog *log = NULL; GList *list = NULL; + g_free(logfile); + if (!(file = fopen(path, "rb"))) { g_free(path); return NULL;