# HG changeset patch # User Richard Laager # Date 1140574262 0 # Node ID b12427d2994e366e43f411433f89cf5b1350d8cb # Parent 403a97caf5c0e857e4610be874f87f07f756b5c5 [gaim-migrate @ 15680] SF Patch #1434560 from glommer "This patch prevent gaim from breaking in case MSN_DEBUG_SLP_FILES is on, and you don't have the needed fs infrastructure." committer: Tailor Script diff -r 403a97caf5c0 -r b12427d2994e src/protocols/msn/slplink.c --- a/src/protocols/msn/slplink.c Wed Feb 22 02:08:45 2006 +0000 +++ b/src/protocols/msn/slplink.c Wed Feb 22 02:11:02 2006 +0000 @@ -47,6 +47,11 @@ c = send ? m_sc++ : m_rc++; tmp = g_strdup_printf("%s/msntest/%s/%03d", g_get_home_dir(), dir, c); tf = g_fopen(tmp, "wb"); + if (tf == NULL) + { + gaim_debug_error("msn", "could not open debug file"); + return; + } pload = msn_message_gen_payload(msg, &pload_size); fwrite(pload, 1, pload_size, tf); fclose(tf);