Revision: 45743
          http://brlcad.svn.sourceforge.net/brlcad/?rev=45743&view=rev
Author:   bhinesley
Date:     2011-08-01 18:46:11 +0000 (Mon, 01 Aug 2011)

Log Message:
-----------
fixed off by one error in a function that frees linked list of args; was 
causing crashes in some cases

Modified Paths:
--------------
    brlcad/trunk/src/libged/edit.c

Modified: brlcad/trunk/src/libged/edit.c
===================================================================
--- brlcad/trunk/src/libged/edit.c      2011-08-01 17:37:36 UTC (rev 45742)
+++ brlcad/trunk/src/libged/edit.c      2011-08-01 18:46:11 UTC (rev 45743)
@@ -993,11 +993,11 @@
 {
     struct edit_arg *last_arg = arg;
 
-    while ((arg = arg->next)) {
+    do {
        if (!(arg->next))
            break;
        last_arg = arg;
-    }
+    } while ((arg = arg->next));
     last_arg->next = NULL;
     edit_arg_free(arg);
 }


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

------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to