Revision: 48395
http://brlcad.svn.sourceforge.net/brlcad/?rev=48395&view=rev
Author: starseeker
Date: 2012-01-11 16:27:26 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Don't fool around with this - if scanf fails and we have no file pointer, exit.
CID 259
Modified Paths:
--------------
brlcad/trunk/src/irprep/ir-X.c
Modified: brlcad/trunk/src/irprep/ir-X.c
===================================================================
--- brlcad/trunk/src/irprep/ir-X.c 2012-01-11 16:12:34 UTC (rev 48394)
+++ brlcad/trunk/src/irprep/ir-X.c 2012-01-11 16:27:26 UTC (rev 48395)
@@ -371,8 +371,7 @@
(void)fflush(stdout);
ret = scanf("%25s", file);
if (ret == 0) {
- perror("scanf");
- break;
+ bu_exit(EXIT_FAILURE, "ir-X - scanf failure - no file to work
with!!\n");
}
fpr = fopen(file, "rb");
}
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