Revision: 48401
http://brlcad.svn.sourceforge.net/brlcad/?rev=48401&view=rev
Author: starseeker
Date: 2012-01-11 16:58:07 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Check for NULL args case, log and return appropriately. CID 262
Modified Paths:
--------------
brlcad/trunk/src/lgt/do_options.c
Modified: brlcad/trunk/src/lgt/do_options.c
===================================================================
--- brlcad/trunk/src/lgt/do_options.c 2012-01-11 16:54:58 UTC (rev 48400)
+++ brlcad/trunk/src/lgt/do_options.c 2012-01-11 16:58:07 UTC (rev 48401)
@@ -2426,9 +2426,13 @@
HMitem *itemptr;
if (! tty)
{
- bu_log("IR module command (%c): missing argument\n",
- *args[0]);
- return -1;
+ if (args == NULL) {
+ bu_log("f_IRmodule - no args!\n");
+ return -1;
+ }
+ if (args[0])
+ bu_log("IR module command (%c): missing argument.\n", *args[0]);
+ return -1;
}
if ((itemptr = hmenuhit(&irflags_hmenu, 1, TOP_SCROLL_WIN))
!= (HMitem *) 0
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