ayttm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ayttm-commits] CVS: ayttm/modules/workwizu workwizu.c,1.24,1.25


From: Colin Leroy <address@hidden>
Subject: [Ayttm-commits] CVS: ayttm/modules/workwizu workwizu.c,1.24,1.25
Date: Thu, 30 Jan 2003 07:07:49 -0500

Update of /cvsroot/ayttm/ayttm/modules/workwizu
In directory subversions:/tmp/cvs-serv5460

Modified Files:
        workwizu.c 
Log Message:
fix segfault


Index: workwizu.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/workwizu/workwizu.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- workwizu.c  30 Jan 2003 08:23:19 -0000      1.24
+++ workwizu.c  30 Jan 2003 12:07:47 -0000      1.25
@@ -303,7 +303,12 @@
        gchar **tokens = g_strsplit(stats,"|",7);
        char *sfrom = g_strdup_printf("%d",from);
        eb_account *ea = find_account_by_handle(sfrom, 
SERVICE_INFO.protocol_id);
-       wwz_user *user = (wwz_user *)ea->protocol_account_data;
+       wwz_user *user;
+       
+       if(!ea)
+               return;
+       
+       user = (wwz_user *)ea->protocol_account_data;
        user->is_driver = !strcmp(tokens[0],"true");
        user->is_typing = (tokens[6] != NULL && !strcmp(tokens[6],"true"));
        user->has_speak = !strcmp(tokens[1],"true");





reply via email to

[Prev in Thread] Current Thread [Next in Thread]