Revision: 40726
http://brlcad.svn.sourceforge.net/brlcad/?rev=40726&view=rev
Author: brlcad
Date: 2010-09-28 11:28:04 +0000 (Tue, 28 Sep 2010)
Log Message:
-----------
few sanity sets to NULL on the user data after we're done with it
Modified Paths:
--------------
brlcad/trunk/src/libpkg/pkg.c
Modified: brlcad/trunk/src/libpkg/pkg.c
===================================================================
--- brlcad/trunk/src/libpkg/pkg.c 2010-09-28 09:51:05 UTC (rev 40725)
+++ brlcad/trunk/src/libpkg/pkg.c 2010-09-28 11:28:04 UTC (rev 40726)
@@ -1531,6 +1531,9 @@
/* pc->pkc_type, pc->pkc_len are preserved for handler */
pc->pkc_switch[i].pks_handler(pc, tempbuf);
+
+ /* sanity */
+ pc->pkc_user_data = (void *)NULL;
return 1;
}
snprintf(_pkg_errbuf, MAX_PKG_ERRBUF_SIZE, "_pkg_dispatch: no handler for
message type %d, len %ld\n",
@@ -1540,6 +1543,7 @@
pc->pkc_buf = (char *)0;
pc->pkc_curpos = (char *)0;
pc->pkc_left = -1; /* safety */
+ pc->pkc_user_data = (void *)NULL;
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits