Mercurial > pidgin.yaz
comparison libpurple/protocols/oscar/clientlogin.c @ 30111:519905ba5f75
oscar: Fix a clientLogin error crash (null printf bug). Closes #11662
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 10 Apr 2010 22:48:48 +0000 |
parents | fa8a25b46252 |
children | 3fbae92e7e0b |
comparison
equal
deleted
inserted
replaced
30110:8474495b9dfc | 30111:519905ba5f75 |
---|---|
513 | 513 |
514 od->url_data = NULL; | 514 od->url_data = NULL; |
515 | 515 |
516 if (error_message != NULL || len == 0) { | 516 if (error_message != NULL || len == 0) { |
517 gchar *tmp; | 517 gchar *tmp; |
518 tmp = g_strdup_printf(_("Error requesting %s: %s"), | 518 if (error_message != NULL) |
519 URL_CLIENT_LOGIN, error_message); | 519 tmp = g_strdup_printf(_("Error requesting %s: %s"), |
520 URL_CLIENT_LOGIN, error_message); | |
521 else | |
522 tmp = g_strdup_printf(_("Error requesting %s"), | |
523 URL_CLIENT_LOGIN); | |
520 purple_connection_error_reason(gc, | 524 purple_connection_error_reason(gc, |
521 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, tmp); | 525 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, tmp); |
522 g_free(tmp); | 526 g_free(tmp); |
523 return; | 527 return; |
524 } | 528 } |