Revision: 48428
http://brlcad.svn.sourceforge.net/brlcad/?rev=48428&view=rev
Author: starseeker
Date: 2012-01-11 19:27:52 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Make sure we have buf before we void out buf->elts. Scanner template fix will
impact all users of perplex - CID 1839
Modified Paths:
--------------
brlcad/trunk/src/other/perplex/scanner_template.c
Modified: brlcad/trunk/src/other/perplex/scanner_template.c
===================================================================
--- brlcad/trunk/src/other/perplex/scanner_template.c 2012-01-11 19:21:46 UTC
(rev 48427)
+++ brlcad/trunk/src/other/perplex/scanner_template.c 2012-01-11 19:27:52 UTC
(rev 48428)
@@ -352,7 +352,8 @@
if (buf && buf->elts) {
free(buf->elts);
}
- buf->elts = (void*)0;
+ if (buf)
+ buf->elts = (void*)0;
}
/* appends ptr[] to buf, grow if necessary.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits