Mercurial > pidgin
changeset 3067:b695cbbeee2d
[gaim-migrate @ 3081]
removed some compile warnings
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 17 Mar 2002 01:22:35 +0000 |
parents | 3b1dc99ef79e |
children | 1b64206cfbdc |
files | src/multi.c |
diffstat | 1 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/multi.c Sun Mar 17 01:17:12 2002 +0000 +++ b/src/multi.c Sun Mar 17 01:22:35 2002 +0000 @@ -20,6 +20,7 @@ */ #include <string.h> +#include <ctype.h> #include <gtk/gtk.h> #include "prpl.h" #include "multi.h" @@ -894,7 +895,7 @@ { GList *l = GTK_CLIST(list)->selection; int row = -1; - struct aim_user *u; + struct aim_user *u = NULL; struct prpl *p = find_prpl(u->protocol); while (l) { row = (int)l->data; @@ -1049,25 +1050,26 @@ GtkWidget* create_meter_pixmap (GtkWidget *widget, struct gaim_connection *gc) { - GdkColormap *colormap; GdkPixmap *gdkpixmap; GdkBitmap *mask; GtkWidget *pixmap; GtkStyle *style; - char **xpm; + char **xpm = NULL; style = gtk_widget_get_style( widget ); if (gc->prpl->list_icon) - if (gc->prpl->protocol == PROTO_OSCAR) + if (gc->prpl->protocol == PROTO_OSCAR) { /* This is such a bad hack to get the right icon * for OSCAR. But it's pretty */ - if (isdigit(*gc->username)) + if (isdigit(*gc->username)) { xpm = gc->prpl->list_icon(0); - else + } else { xpm = gc->prpl->list_icon(0x10); - else + } + } else { xpm = gc->prpl->list_icon (0); + } if (xpm == NULL) xpm = (char **)no_icon_xpm; @@ -1282,8 +1284,7 @@ if (!meter_win) { GtkWidget *cancel_button; GtkWidget *vbox; - GString *name; - + meter_win = g_new0(struct meter_window, 1); meter_win->rows=0;