Revision: 48384
http://brlcad.svn.sourceforge.net/brlcad/?rev=48384&view=rev
Author: starseeker
Date: 2012-01-11 14:49:49 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Go ahead and check the fp before calling the write functions for bot_dump...
CID 243
Modified Paths:
--------------
brlcad/trunk/src/libged/bot_dump.c
Modified: brlcad/trunk/src/libged/bot_dump.c
===================================================================
--- brlcad/trunk/src/libged/bot_dump.c 2012-01-11 14:33:57 UTC (rev 48383)
+++ brlcad/trunk/src/libged/bot_dump.c 2012-01-11 14:49:49 UTC (rev 48384)
@@ -690,6 +690,8 @@
bu_log("Unsupported binary file type - only STL is currently
supported\n");
return;
} else {
+ /* If we get to this point, we need fp - check for it */
+ if (fp) {
switch (output_type) {
case OTYPE_DXF:
write_bot_dxf(bot, fp, dp->d_namep);
@@ -705,6 +707,9 @@
write_bot_stl(bot, fp, dp->d_namep);
break;
}
+ } else {
+ bu_log("bot_dump: non-binay file requested but fp is NULL!\n");
+ }
}
}
}
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