Revision: 48422
http://brlcad.svn.sourceforge.net/brlcad/?rev=48422&view=rev
Author: starseeker
Date: 2012-01-11 18:45:51 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Do some sanity checking on fp in data_dump. CID 275
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 18:37:10 UTC (rev 48421)
+++ brlcad/trunk/src/libged/bot_dump.c 2012-01-11 18:45:51 UTC (rev 48422)
@@ -1294,8 +1294,13 @@
write_data_obj(gedp, data_fp);
fclose(data_fp);
} else
- write_data_obj(gedp, fp);
- break;
+ if (fp) {
+ write_data_obj(gedp, fp);
+ } else {
+ bu_vls_printf(gedp->ged_result_str, "data_dump: bad FILE
fp\n");
+ return GED_ERROR;
+ }
+ break;
case OTYPE_SAT:
break;
case OTYPE_STL:
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