Mercurial > pidgin
comparison src/protocols/jabber/message.c @ 8042:7fa6ddec6e30
[gaim-migrate @ 8726]
fix a segfault I ran in to
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 09 Jan 2004 16:58:33 +0000 |
parents | 7bae464195c4 |
children | 9a6df4d567e0 |
comparison
equal
deleted
inserted
replaced
8041:70b7516d1447 | 8042:7fa6ddec6e30 |
---|---|
480 | 480 |
481 int jabber_message_send_chat(GaimConnection *gc, int id, const char *msg) | 481 int jabber_message_send_chat(GaimConnection *gc, int id, const char *msg) |
482 { | 482 { |
483 JabberChat *chat; | 483 JabberChat *chat; |
484 JabberMessage *jm; | 484 JabberMessage *jm; |
485 JabberStream *js = gc->proto_data; | 485 JabberStream *js; |
486 char *buf, *xhtml; | 486 char *buf, *xhtml; |
487 | 487 |
488 if(!msg) | 488 if(!msg || !gc) |
489 return 0; | 489 return 0; |
490 | 490 |
491 js = gc->proto_data; | |
491 chat = jabber_chat_find_by_id(js, id); | 492 chat = jabber_chat_find_by_id(js, id); |
492 | 493 |
493 if(!strcmp(msg, "/configure") || !strcmp(msg, "/config")) { | 494 if(!strcmp(msg, "/configure") || !strcmp(msg, "/config")) { |
494 jabber_chat_request_room_configure(chat); | 495 jabber_chat_request_room_configure(chat); |
495 return 1; | 496 return 1; |