Revision: 42257
http://brlcad.svn.sourceforge.net/brlcad/?rev=42257&view=rev
Author: brlcad
Date: 2011-01-14 06:06:45 +0000 (Fri, 14 Jan 2011)
Log Message:
-----------
use bu_booleanize() to test the value (even though we only looked for ynYN just
earlier in this func to pass arg validation.
Modified Paths:
--------------
brlcad/trunk/src/mged/mged.c
Modified: brlcad/trunk/src/mged/mged.c
===================================================================
--- brlcad/trunk/src/mged/mged.c 2011-01-14 06:02:42 UTC (rev 42256)
+++ brlcad/trunk/src/mged/mged.c 2011-01-14 06:06:45 UTC (rev 42257)
@@ -2709,10 +2709,7 @@
}
/* did the caller specify not creating a new database? */
- if (argc >= 3
- && *argv[2] != 'y'
- && *argv[2] != 'Y')
- {
+ if (argc >= 3 && !bu_booleanize(argv[2])) {
gedp = save_gedp;
dbip = save_dbip; /* restore previous database */
rt_new_material_head(save_materp);
@@ -2892,7 +2889,7 @@
return TCL_ERROR;
}
- if (dbip == DBI_NULL ) {
+ if (dbip == DBI_NULL) {
Tcl_AppendResult(interpreter, "No database is open\n", NULL);
return TCL_OK;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits