]> andersk Git - libfaim.git/commitdiff
Stupid bug.
authormid <mid>
Wed, 29 Dec 1999 10:01:22 +0000 (10:01 +0000)
committermid <mid>
Wed, 29 Dec 1999 10:01:22 +0000 (10:01 +0000)
aim_im.c

index e7ca202e8188bea2a2cc78cde916fff30bb557a9..c131687b432135740a3ca1708be209478056df44 100644 (file)
--- a/aim_im.c
+++ b/aim_im.c
@@ -166,6 +166,8 @@ int aim_parse_incoming_im_middle(struct aim_session_t *sess,
   struct aim_userinfo_s userinfo;
   u_short wastebits;
 
+  memset(&userinfo, 0x00, sizeof(struct aim_userinfo_s));
   i = 10; /* Skip SNAC header */
 
   /*
@@ -204,7 +206,7 @@ int aim_parse_incoming_im_middle(struct aim_session_t *sess,
   memcpy(userinfo.sn, command->data+i+1, (int)command->data[i]);
   userinfo.sn[(int)command->data[i]] = '\0';
   i += 1 + (int)command->data[i];
-      
+
   /*
    * Warning Level
    */
@@ -234,9 +236,7 @@ int aim_parse_incoming_im_middle(struct aim_session_t *sess,
       struct aim_tlv_t *msgblocktlv, *tmptlv;
       u_char *msgblock;
       u_short flag1,flag2;
-      
-      memset(&userinfo, 0x00, sizeof(struct aim_userinfo_s));
-      
+           
       /*
        * Check Autoresponse status.  If it is an autoresponse,
        * it will contain a second type 0x0004 TLV, with zero length.
This page took 0.050687 seconds and 5 git commands to generate.