comparison src/session.c @ 4544:96a2a6c9affc

[gaim-migrate @ 4823] (10:53:17) Robot101: http://people.debian.org/~robot101/printfing-nulls-crashes-solaris-libc.diff i think the file name says it all. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Thu, 06 Feb 2003 15:53:38 +0000
parents d956ac6157cd
children 0241d6b6702d
comparison
equal deleted inserted replaced
4543:8be012f3a3d6 4544:96a2a6c9affc
298 callbacks.save_yourself.client_data = NULL; 298 callbacks.save_yourself.client_data = NULL;
299 callbacks.die.client_data = NULL; 299 callbacks.die.client_data = NULL;
300 callbacks.save_complete.client_data = NULL; 300 callbacks.save_complete.client_data = NULL;
301 callbacks.shutdown_cancelled.client_data = NULL; 301 callbacks.shutdown_cancelled.client_data = NULL;
302 302
303 debug_printf("Session Management: connecting with previous ID %s\n", previous_id); 303 if (previous_id) {
304 debug_printf("Session Management: connecting with previous ID %s\n", previous_id);
305 } else {
306 debug_printf("Session Management: connecting with no previous ID\n");
307 }
304 308
305 session = SmcOpenConnection(NULL, "session", SmProtoMajor, SmProtoMinor, SmcSaveYourselfProcMask | 309 session = SmcOpenConnection(NULL, "session", SmProtoMajor, SmProtoMinor, SmcSaveYourselfProcMask |
306 SmcDieProcMask | SmcSaveCompleteProcMask | SmcShutdownCancelledProcMask, 310 SmcDieProcMask | SmcSaveCompleteProcMask | SmcShutdownCancelledProcMask,
307 &callbacks, previous_id, &client_id, ERROR_LENGTH, error); 311 &callbacks, previous_id, &client_id, ERROR_LENGTH, error);
308 312