gaim/gaim

printf("%s", NULL) is bad
oldstatus
2005-09-06, Daniel Atallah
dcfa5cb9edce
Parents dc4cd7da3669
Children d266e7536160
printf("%s", NULL) is bad
--- a/src/protocols/oscar/oscar.c Thu Sep 01 00:21:31 2005 -0400
+++ b/src/protocols/oscar/oscar.c Tue Sep 06 10:26:45 2005 -0400
@@ -7219,14 +7219,14 @@
name = g_hash_table_lookup(data, "room");
exchange = g_hash_table_lookup(data, "exchange");
- gaim_debug_info("oscar",
- "Attempting to join chat room %s.\n", name);
-
if ((name == NULL) || (*name == '\0')) {
gaim_notify_error(gc, NULL, _("Invalid chat name specified."), NULL);
return;
}
+ gaim_debug_info("oscar",
+ "Attempting to join chat room %s.\n", name);
+
if ((cur = aim_getconn_type(od->sess, AIM_CONN_TYPE_CHATNAV))) {
gaim_debug_info("oscar",
"chatnav exists, creating room\n");