Revision: 49341
          http://brlcad.svn.sourceforge.net/brlcad/?rev=49341&view=rev
Author:   brlcad
Date:     2012-02-08 19:29:48 +0000 (Wed, 08 Feb 2012)
Log Message:
-----------
looks like a false positive, assuming the default case is reasonable for EOF, 
but it's still probably quellable.  fix for CHECKED_RETURN cid 2071.

Modified Paths:
--------------
    brlcad/trunk/src/fbed/fbed.c

Modified: brlcad/trunk/src/fbed/fbed.c
===================================================================
--- brlcad/trunk/src/fbed/fbed.c        2012-02-08 19:17:46 UTC (rev 49340)
+++ brlcad/trunk/src/fbed/fbed.c        2012-02-08 19:29:48 UTC (rev 49341)
@@ -918,11 +918,18 @@
            ;
        if ( j <= DEL )
        {
+           int c;
            SetStandout();
            prnt_Prompt( "-- More -- " );
            ClrStandout();
            (void) fflush( stdout );
-           switch ( *cptr != NUL ? *cptr++ : get_Char() )
+
+           if (*cptr != NUL)
+               c = *cptr++;
+           else
+               c = get_Char();
+
+           switch (c)
            {
                case 'q' :
                case 'n' :

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to