# HG changeset patch # User Eric Warmenhoven # Date 972976724 0 # Node ID 1d43fda97960cd4e5f9f69f03a9665bb1a973088 # Parent 099748ff3a0ac037226946a8ac71762fb6e56dfa [gaim-migrate @ 1044] this is bad, it silently fails if you can't log, but then again, it's better than verbally segfaulting committer: Tailor Script diff -r 099748ff3a0a -r 1d43fda97960 src/conversation.c --- a/src/conversation.c Tue Oct 31 07:06:37 2000 +0000 +++ b/src/conversation.c Tue Oct 31 07:18:44 2000 +0000 @@ -127,12 +127,14 @@ FILE *fd; fd = open_log_file(c->name); - if (!(general_options & OPT_GEN_STRIP_HTML)) - fprintf(fd, "

---- New Conversation @ %s ----


\n", full_date()); - else - fprintf(fd, " ---- New Conversation @ %s ----\n", full_date()); - - fclose(fd); + if (fd > 0) { + if (!(general_options & OPT_GEN_STRIP_HTML)) + fprintf(fd, "

---- New Conversation @ %s ----


\n", full_date()); + else + fprintf(fd, " ---- New Conversation @ %s ----\n", full_date()); + fclose(fd); + } else + /* do we want to do something here? */ ; } if (connections)