changeset 284:bafaf1b68f9a

[gaim-migrate @ 294] Hi. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 31 May 2000 04:06:51 +0000
parents 0f14e6d8a51b
children a8971e3704f6
files libfaim/aim_im.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libfaim/aim_im.c	Wed May 31 03:20:11 2000 +0000
+++ b/libfaim/aim_im.c	Wed May 31 04:06:51 2000 +0000
@@ -527,10 +527,9 @@
   snacid = aimutil_get32(command->data+6);
   snac = aim_remsnac(sess, snacid);
 
-  if (!snac)
-    {
-      printf("faim: msgerr: got an ICBM-failed error on an unknown SNAC ID! (%08lx)\n", snacid);
-    }
+  if (!snac) {
+    printf("faim: msgerr: got an ICBM-failed error on an unknown SNAC ID! (%08lx)\n", snacid);
+  }
 
   /*
    * Call client.
@@ -541,8 +540,10 @@
   else
     ret = 0;
   
-  free(snac->data);
-  free(snac);
+  if (snac) {
+    free(snac->data);
+    free(snac);
+  }
 
   return ret;
 }